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

Comments

@ORESoftware
Copy link

@ORESoftware 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

This comment has been minimized.

Copy link
Member

@bcmills 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
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Mar 6, 2020

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.)

@gopherbot gopherbot closed this Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.