cmd/go: build fails with sym links ("no Go files") #52406
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Unknown
What operating system and processor architecture are you using (
go env
)?env GOPATH=/tmp/go go env
OutputWhat did you do?
I am trying to build some go projects (e.g., https://github.com/FiloSottile/age, https://github.com/muesli/duf).
If I start with an GOPATH pointing to an empty directory tree or one already populated with downloaded files, the build succeeds. If GOPATH is a directory with symbolic links to files in another directory, the build fails.
Here is a script to reproduce the problem (using 'age' as an example, but this happens with other go projects as well). This script uses a tool called 'lndir' to create a hierarchy of sym links. It uses /tmp/src and /tmp/go and /tmp/go-links as working directories.
Observe errors (as shown below) from running
repro
script.I'm not sure where to start looking for the source of this error. Apologies if this issue is mis-categorized, but I'm also not sure if this is the best place to start.
What did you expect to see?
No errors.
What did you see instead?
Errors like the following (for a build of age):
Notice that vendor packages are missing (silently not downloaded) from the source tree after 'go mod vendor' when using the GOPATH hierarchy with symbolic links.
The text was updated successfully, but these errors were encountered: