Skip to content

fix(deps): watch the nested starlarkexec module so root bumps stop breaking it - #448

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/watch-the-nested-starlark-module
Sep 10, 2026
Merged

fix(deps): watch the nested starlarkexec module so root bumps stop breaking it#448
rldyourmnd merged 1 commit into
mainfrom
fix/watch-the-nested-starlark-module

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

internal/incusplacement/starlarkexec is a nested module that requires the root module, so the root's dependency graph moving is enough to leave its go.mod stale. starlarkexec_hook_test.go shells go test and go vet into that directory, and Go answers updates to go.mod needed; to update it: go mod tidy.

That is exactly what happened to #446. Dependabot bumped golang.org/x/sys 0.47.0 → 0.48.0 in the root; the nested module still requires 0.47.0; Race, Static and build and Test all went red without a line of that module's own code changing.

.github/dependabot.yml listed gomod at / only, so the nested module was never watched — the same shape as the npm manifest in #439, found because that one made me look for others. This adds the directory so the two move in step.

This does not fix #446 by itself. That branch still needs go mod tidy inside the nested module. I could not run it here and did not guess at the result: both modules declare go 1.26.7, and this workstation has only Go 1.26.5 managed under ~/.local/share/rldyour/go/, with GOTOOLCHAIN=local in force. CI resolves go-version-file: go.mod, so it has 1.26.7 and can tidy correctly.

Worth a separate look: the bootstrap contract holds go at 1.26.6, this device carries 1.26.5, and these modules require 1.26.7 — three different numbers for one toolchain.

https://claude.ai/code/session_01CKXKXND4zAgWisTtatyTHX

…eaking it

internal/incusplacement/starlarkexec requires the root module, so the root's
dependency graph moving is enough to leave its go.mod stale. The harness test
shells `go test` and `go vet` into that directory, and Go answers "updates to
go.mod needed".

That is what happened to #446: a root-only bump of golang.org/x/sys turned
three CI jobs red without touching a line of that module's own code.

dependabot.yml listed gomod at / only, so the nested module was never watched
-- the same shape as the npm manifest in #439.

Claude-Session: https://claude.ai/code/session_01CKXKXND4zAgWisTtatyTHX
@rldyourmnd
rldyourmnd merged commit e704a4e into main Sep 10, 2026
10 checks passed
@rldyourmnd
rldyourmnd deleted the fix/watch-the-nested-starlark-module branch September 10, 2026 22:52
rldyourmnd added a commit that referenced this pull request Sep 10, 2026
The group bump moved golang.org/x/sys to 0.48.0 in the root module.
internal/incusplacement/starlarkexec requires the root module, so its own
go.mod still asked for 0.47.0, and starlarkexec_hook_test.go — which shells
`go test` and `go vet` into that directory — got "updates to go.mod needed"
and failed Race, Static and build, and Test.

Tidied with GOTOOLCHAIN=go1.26.7, the version both go.mod files declare; this
workstation manages only 1.26.5, so a plain `go mod tidy` here is refused.
TestStarlarkExecutionHarness passes against the tidied module.

#448 adds this directory to dependabot so the two stay in step from now on.

Claude-Session: https://claude.ai/code/session_01CKXKXND4zAgWisTtatyTHX
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.

1 participant