Skip to content

cmd/go: Go not traversing symlinks #17451

@krisnova

Description

@krisnova

V 1.6.2 Darwin/AMD64

# My project lives here
cd ~/myproject

# My $GOPATH is ~/gopath
echo $GOPATH
/Users/kris/gopath

# Symlink my project into $GOPATH
ln -s ~/myproject $GOPATH/src/myproject
go install $GOPATH/src/myproject/...

#This error message
warning: "/Users/kris/gopath/myproject/..." matched no packages

I would expect go to respect and follow the symlink and traverse the path as it would with a hardlink.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions