-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: fullpath always enabled in GOPATH mode #69500
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
cagedmantis
added
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
GoCommand
cmd/go
labels
Sep 17, 2024
Hi @rittneje, could you help me reproduce this? This is what I tried:
(I'm using the |
@matloob For some strange reason, it only does this if you do "run test" in VS Code. I can't figure out why - I've try printing out I'm going to re-file this over there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.22.6 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
I ran
go test
in GOPATH mode (i.e.,GO111MODULE=auto
) without-fullpath
.What did you see happen?
The errors included full (absolute) paths.
What did you expect to see?
I expected to see relative paths.
If this behavior is intentional, it should be explicitly noted in the documentation for the
-fullpath
flag. https://pkg.go.dev/cmd/go#hdr-Test_packagesThis also was not mentioned in the 1.21 release notes on the matter. https://tip.golang.org/doc/go1.21#go-command
I'll also note that even explicitly passing
-fullpath=false
doesn't disable it.The text was updated successfully, but these errors were encountered: