Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"go mod tidy" does not work with UNIX soft links #58911

Closed
JetSetIlly opened this issue Mar 7, 2023 · 1 comment
Closed

"go mod tidy" does not work with UNIX soft links #58911

JetSetIlly opened this issue Mar 7, 2023 · 1 comment

Comments

@JetSetIlly
Copy link

What version of Go are you using (go version)?

go version go1.20.1 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"

What did you do?

Running go mod tidy in a directory that is a soft-link does not work. Running go mod tidy from the real location does work. The only difference is the soft-link.

For example: If I have a project in /home/me/source/myproject and a softlink to that project:

ln -s source/myproject mylink

What did you expect to see?

The results of go mod tidy as it finds the modules for the project

For example:

go: finding module for package github.com/veandco/go-sdl2/sdl
go: finding module for package github.com/pkg/term/termios
go: finding module for package golang.org/x/image/draw
go: finding module for package golang.org/x/sys/unix

What did you see instead?

go: warning: "all" matched no packages
@seankhliao
Copy link
Member

Duplicate of #45609

@seankhliao seankhliao marked this as a duplicate of #45609 Mar 7, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2023
@golang golang locked and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants