Put GOPATH/bin on PATH so go install-ed tools run #6
Reference in New Issue
Block a user
Delete Branch "container-gopath-bin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A step that runs
go install <tool>@<version>then invokes the tool fails with exit 127: the binary lands in$GOPATH/bin, which nothing adds toPATH, andGOPATHdefaults to/root/go. Pipelines moving here fromdocker.io/golang, where/go/binis onPATH, break on that difference.GOPATH=/goand prepend/go/bintoPATH, matching the official golang images./go/binmode 1777 sogo installalso works if the image runs as non-root.