Skip to content

resolve: GOWORK=off + passAsFile importcfg_entries (dynamic-mode torture fixes)#125

Merged
brianmcgee merged 1 commit intomainfrom
aldo/resolve-gowork-off
Apr 16, 2026
Merged

resolve: GOWORK=off + passAsFile importcfg_entries (dynamic-mode torture fixes)#125
brianmcgee merged 1 commit intomainfrom
aldo/resolve-gowork-off

Conversation

@aldoborrero
Copy link
Copy Markdown
Member

Dynamic-mode resolve.go didn't set GOWORK=off; the dag plugin does (resolve.rs:382). With a go.work present, workspace MVS ignores per-module replace directives, so it may select a version the per-module lockfile doesn't have — go list -mod=readonly then fails with module lookup disabled by GOPROXY=off. The torture fixture (which gained go.work in #121 for gazelle) hits this: app-full replaces gin → v1.9.1, workspace MVS picks v1.12.0 from internal/web.

Unblocks #124's torture×dynamic comparison.

The dag-mode plugin sets GOWORK=off (resolve.rs:382); dynamic-mode
resolve.go didn't. With a go.work present, workspace MVS ignores
per-module replace directives, so it may select a version the
per-module lockfile doesn't have. The torture fixture (which gained
go.work in #121 for gazelle) hits this with gin v1.9.1 (replace) vs
v1.12.0 (workspace MVS).

:house: Remote-Dev: homespace
@brianmcgee brianmcgee added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit e5a5c43 Apr 16, 2026
3 checks passed
@brianmcgee brianmcgee deleted the aldo/resolve-gowork-off branch April 16, 2026 10:36
@github-actions
Copy link
Copy Markdown

Benchmark Regression Check

Scenario Tool Base (s) Current (s) Change Drvs (base) Drvs (curr) Status
no_change nix-ca-nocgo 0.65 0.67 +2.2% 0 0 ok
no_change nix-nocgo 0.66 0.67 +1.4% 0 0 ok
leaf-private nix-ca-nocgo 2.47 2.58 +4.3% 2 2 ok
leaf-private nix-nocgo 1.69 1.76 +3.6% 2 2 ok
mid-private nix-ca-nocgo 2.68 2.72 +1.3% 2 2 ok
mid-private nix-nocgo 1.82 1.86 +2.2% 4 4 ok
deep-private nix-ca-nocgo 3.09 3.24 +4.9% 3 3 ok
deep-private nix-nocgo 2.13 2.01 -5.4% 8 8 ok

Baseline: main | Current: cabea3059997c8b39895992ae6fe573645353bac

@aldoborrero aldoborrero changed the title resolve: set GOWORK=off to match the plugin resolve: GOWORK=off + passAsFile importcfg_entries (dynamic-mode torture fixes) Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants