}</BUG>
final Path outputFilename = build.outputFilenameFor(platform);
progress.progress("Building " + outputFilename + "...");
LOGGER.info("Building {}...", outputFilename);
final Executor executor = executor(toolchain.getGoBinary())
<BUG>.workingDirectory(build.getGopath())

.env("GOPATH", build.getGopath())
</BUG>
.env("GOROOT", toolchain.getGoroot())

protected void executeFor(@Nonnull Platform platform, @Nonnull GolangDependency targetPackage, @Nonnull ProgressLogger progress) throws Exception {
final ToolchainSettings toolchain = getToolchain();
final BuildSettings build = getBuild();
final Path outputFilename = build.outputFilenameFor(platform);
progress.progress("Building " + outputFilename + "...");
LOGGER.info("Building {}...", outputFilename);
final Executor executor = executor(toolchain.getGoBinary())
.workingDirectory(build.getFirstGopath())
.env("GOPATH", build.getGopathAsString())
.env("GOROOT", toolchain.getGoroot())
