cmd/go: get error for symlinks in GOPATH #36653
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
If 1.13.6 is the latest, yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Step 1
Create the
/home/user
directory so you can reproduce in a clean environmentStep 2
export GOPATH=/home/user/go
Step 3
Set-up the following hierarchy
tree view
find view
main.go
bar.go
/home/user/go/src/github.com/sguillia/foo
is a symlink to/home/user/projects/foo
Step 4
What did you expect to see?
I expected go to update
foo
, as if there was no symlink.What did you see instead?
Additional notes
When removing the symlink, it works fine. Here is a working hierarchy:
tree view
find view
I can do
go get -d -u .
from within/home/user/go/src/github.com/sguillia/foo
.But I believe I should be able to do it also with the previous hierarchy.
Note
Actually I don't care about go updating
foo
, I can just git pull. I'd like go to update the possible other dependencies of the project, and this bug or unimplemented feature prevents the update of other dependencies whose folder layout is supported.Best
The text was updated successfully, but these errors were encountered: