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: enable module index #53290

Closed
heschi opened this issue Jun 8, 2022 · 5 comments
Closed

cmd/go: enable module index #53290

heschi opened this issue Jun 8, 2022 · 5 comments
Labels
FrozenDueToAge GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done. Performance release-blocker
Milestone

Comments

@heschi
Copy link
Contributor

heschi commented Jun 8, 2022

@matloob is working on a cmd/go feature that is required for the beta. We are waiting for https://go.dev/cl/410821 to be submitted.

@heschi heschi added NeedsFix The path to resolution is known, but the work has not been done. release-blocker labels Jun 8, 2022
@heschi heschi added this to the Go1.19 milestone Jun 8, 2022
@gopherbot
Copy link

Change https://go.dev/cl/410821 mentions this issue: cmd/go: enable module index by default

@findleyr
Copy link
Contributor

findleyr commented Jun 8, 2022

It looks like the x/tools windows builders may have been broken by this change. Reopening while we investigate.

@findleyr findleyr reopened this Jun 8, 2022
@findleyr
Copy link
Contributor

findleyr commented Jun 8, 2022

Gopls regression tests are failing, for example:
https://build.golang.org/log/6c0b00bc594925cd49ad49ddbe351a7afcddeb7d

@findleyr
Copy link
Contributor

findleyr commented Jun 8, 2022

Fixed in https://go.dev/cl/411118.

@gopherbot
Copy link

Change https://go.dev/cl/412779 mentions this issue: cmd/go/internal/modindex: avoid walking modules when not needed

gopherbot pushed a commit that referenced this issue Jun 21, 2022
Due to a missed condition in CL 412394, we were walking all modules
(instead of just the ones contained in GOROOT) at each invocation of a
devel version of cmd/go.

Moreover, while we were running cmd/go tests, we were re-walking
GOROOT at each 'go' invocation in the test even though we expect
GOROOT to be stable within a test run.

This change always avoids walking non-GOROOT modules, and also adds a
salt (configurable via GODEBUG) and uses it to avoid walking GOROOT
modules when GOROOT is known to be stable (such as over the course of
a 'cmd/go' test run).

This should fix the cmd/go test timeouts that are currently occurring
on the dragonfly-amd64 builder, such as this one:
https://build.golang.org/log/21c01c3ae5490d387d84abeaf872b3a0a76ab8e5

Updates #53290.

Change-Id: Ic807d215831a3cd21c63e0bccd3d7acd10d8f2b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/412779
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
@rsc rsc unassigned matloob Jun 22, 2022
jproberts pushed a commit to jproberts/go that referenced this issue Aug 10, 2022
Due to a missed condition in CL 412394, we were walking all modules
(instead of just the ones contained in GOROOT) at each invocation of a
devel version of cmd/go.

Moreover, while we were running cmd/go tests, we were re-walking
GOROOT at each 'go' invocation in the test even though we expect
GOROOT to be stable within a test run.

This change always avoids walking non-GOROOT modules, and also adds a
salt (configurable via GODEBUG) and uses it to avoid walking GOROOT
modules when GOROOT is known to be stable (such as over the course of
a 'cmd/go' test run).

This should fix the cmd/go test timeouts that are currently occurring
on the dragonfly-amd64 builder, such as this one:
https://build.golang.org/log/21c01c3ae5490d387d84abeaf872b3a0a76ab8e5

Updates golang#53290.

Change-Id: Ic807d215831a3cd21c63e0bccd3d7acd10d8f2b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/412779
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
@golang golang locked and limited conversation to collaborators Jun 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done. Performance release-blocker
Projects
None yet
Development

No branches or pull requests

5 participants