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: go.work outside /src directory is not respected in /src #52084

Open
hyangah opened this issue Mar 31, 2022 · 1 comment
Open

cmd/go: go.work outside /src directory is not respected in /src #52084

hyangah opened this issue Mar 31, 2022 · 1 comment
Labels
GoCommand modules NeedsInvestigation
Milestone

Comments

@hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 31, 2022

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

$ pwd
/Users/hakim/go_tip/go/src 
$ ../bin/go version
go version devel go1.19-fd653913be Thu Mar 31 13:59:09 2022 -0400 darwin/amd64

What did you do?

$  cat ../go.work
go 1.18

use (
	./src
	./src/cmd
)
$ ../bin/go env GOWORK GOROOT

/Users/hakim/go_tip/go
$ ../bin/go list -m
std

What did you expect to see?

go.work is respected.

What did you see instead?

go.work outside std is not respected.

cc @matloob @bcmills

@cherrymui cherrymui added NeedsInvestigation GoCommand labels Apr 5, 2022
@cherrymui cherrymui added this to the Backlog milestone Apr 5, 2022
@bcmills bcmills added the modules label Apr 5, 2022
@gopherbot
Copy link

@gopherbot gopherbot commented Apr 6, 2022

Change https://go.dev/cl/398634 mentions this issue: cmd/go: ignore go.work in $TMPDIR instead of $GOROOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand modules NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

4 participants