Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/dist: -vv flag interfere with output of env command #3788
# go tool dist env -vv >a # cat a GOROOT="/root/hg/go" GOBIN="/root/hg/go/bin" GOARCH="386" GOOS="linux" GOHOSTARCH="386" GOHOSTOS="linux" GOTOOLDIR="/root/hg/go/pkg/tool/linux_386" GOCHAR="8" rm -rf /var/tmp/go-cbuild-LstMR4 # We do not want rm -rf /var/tmp/go-cbuild-LstMR4 line in file a.
I recognize this :) Options are to allow dist env to write to a file, or to make all verbose messages print to stderr. The first is a smaller change to cmd/dist, but also requires a change to the build scripts. The second option is a bit more sweeping, but at least leaves everything but cmd/dist alone.