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

cmd/go: the go run command works with symlinks, but go test doesn't like them? #37062

Closed
ORESoftware opened this issue Feb 5, 2020 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@ORESoftware
Copy link

ORESoftware commented Feb 5, 2020

$ go version:
go version go1.13.4 darwin/amd64

Does this issue reproduce with the latest release?

I symlink a folder to $GOPATH like so:

ln -sf "$HOME/codes/golang/foo"  "$GOPATH/src/channelmeter/foo"

I get this warning:

warning: ignoring symlink /Users/alex/go/src/channelmeter/foo

when I run this:

go test -coverprofile out.html all 

but when I use go run it can handle the symlink.
So it seems like go test cannot handle the same symlinks that go run can.

@bcmills
Copy link
Contributor

bcmills commented Feb 6, 2020

when I use go run it can handle the symlink

Please fill out the complete issue template. Specifically, in the “What did you do?” section, provide the exact commands you ran and their output.

@bcmills bcmills changed the title The go run command works with symlinks, but go test doesn't like them? cmd/go: the go run command works with symlinks, but go test doesn't like them? Feb 6, 2020
@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Feb 6, 2020
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants