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 cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hyangah
Copy link
Contributor

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 Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go 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
Contributor

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

@bcmills bcmills self-assigned this Jul 18, 2022
@bcmills bcmills modified the milestones: Backlog, Go1.20 Jul 18, 2022
@bcmills bcmills modified the milestones: Go1.20, Go1.21 Dec 12, 2022
@bcmills bcmills modified the milestones: Go1.21, Go1.22 Jul 25, 2023
@bcmills bcmills modified the milestones: Go1.22, Backlog Feb 1, 2024
@bcmills bcmills removed their assignment Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants