Skip to content

Commit a89e8dc

Browse files
committed
Fill the module cache before a hosted go work pin
The go work vendor test pins a shared module with hosted mode from the workspace root on a fresh machine. Hosted mode reads which version the workspace selects from the module graph in the module cache and writes nothing while it is empty, so the test now downloads the module first, as an earlier build would have. Assisted-by: Claude Code:claude-opus-5-5
1 parent 0e499d0 commit a89e8dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎crates/socket-patch-cli/tests/e2e_golang_workspace_build.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,7 @@ fn go_work_vendor_records_the_go_work_replace() {
14841484
assert_eq!(code, 0, "{env}\n{stderr}");
14851485
env
14861486
} else {
1487+
warm(tmp.path(), &m, &w.proxy, &[(UMOD, UVER)]);
14871488
let (code, env, stderr) = w.api.get(&w.root, &m.modcache, &[]);
14881489
assert_eq!(code, 0, "{env}\n{stderr}");
14891490
env

0 commit comments

Comments
 (0)