You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building the go distribution using all.bash, with an error in one of the standard packages.
What did you expect to see?
The build process to print the compilation errors, stop the build and cleaning up all the temporary resources.
What did you see instead?
This is the output:
Building Go cmd/dist using /usr/lib/go. (go1.16.3 linux/amd64)
Building Go toolchain1 using /usr/lib/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
/home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/match.go:5:9: package filepath; expected filepath_test
/home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/path.go:12:9: package filepath; expected filepath_test
/home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/path_unix.go:8:9: package filepath; expected filepath_test
/home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/symlink.go:5:9: package filepath; expected filepath_test
/home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/symlink_unix.go:4:9: package filepath; expected filepath_test
go tool dist: FAILED: /home/manlio/src/contrib/go/go.googlesource.com/go/pkg/tool/linux_amd64/compile -std -pack -o /tmp/go-tool-dist-818923994/path/filepath/_go_.a -p path/filepath -importcfg /tmp/go-tool-dist-818923994/path/filepath/importcfg /home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/example_unix_getwd.go /home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/match.go /home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/path.go /home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/path_unix.go /home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/symlink.go /home/manlio/src/contrib/go/go.googlesource.com/go/src/path/filepath/symlink_unix.go: exit status 2
go tool dist: open /tmp/go-tool-dist-818923994/log/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/go/token/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/cmd/go/internal/par/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/debug/dwarf/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/encoding/xml/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/encoding/hex/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/cmd/vendor/golang.org/x/xerrors/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/net/url/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/path/filepath/_go_.a: no such file or directory"
go tool dist: open /tmp/go-tool-dist-818923994/text/template/parse/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/compress/flate/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/encoding/json/_go_.a: no such file or directory
go tool dist: open /tmp/go-tool-dist-818923994/flag/_go_.a: no such file or directory
Also, some temporary directories in /tmp have not been removed:
I'm not sure how easy it would be to handle every possible failure mode in all.bash. I suspect it would require a good amount of code; the number of corner cases to be handled must be high.
some temporary directories in /tmp have not been removed
I don't think this is a problem, that's the whole point of /tmp, and applications using it don't have to remove the temporary files and folders they create.
ALTree
added
the
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
label
Apr 8, 2021
On my system /tmp is on tmpfs and I usually only reboot the system once in a week (normally using suspend). This means that having a lot of files in /tmp will consume my available memory.
The CL that fixes this makes a small change. Given that, it seems okay to move this to NeedsFix.
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
labels
May 21, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm building the
go
distribution usingall.bash
, with an error in one of the standard packages.What did you expect to see?
The build process to print the compilation errors, stop the build and cleaning up all the temporary resources.
What did you see instead?
This is the output:
Also, some temporary directories in
/tmp
have not been removed:The text was updated successfully, but these errors were encountered: