Skip to content

chore(deps): Split root into its own Dependabot gomod entry#124

Merged
mojatter merged 1 commit into
mainfrom
chore/dependabot-drop-root-gomod
May 31, 2026
Merged

chore(deps): Split root into its own Dependabot gomod entry#124
mojatter merged 1 commit into
mainfrom
chore/dependabot-drop-root-gomod

Conversation

@mojatter
Copy link
Copy Markdown
Owner

@mojatter mojatter commented May 31, 2026

Why

The root module (/) only depends directly on github.com/mojatter/wfs (bumped manually via intra-repo dep PRs) and github.com/stretchr/testify. Its dependency closure needs at most go 1.24 (via wfs), so root never requires a recent Go toolchain on its own.

The problem: root shared a single multi-directory go-dependencies group with the AWS/Google submodules. Dependabot normalized that group's go directive to the group maximum and wrote it into every directory — including root — even when no root dependency changed. In #123 root's go.mod diff was only the go line: go 1.25.0go 1.25.8, borrowed entirely from the aws-sdk / google-api submodules.

What

Move root (/) into its own gomod update entry, separate from the submodules. Root's go directive is then driven solely by root's own dependency closure (go 1.241.25.0) and is no longer coupled to the submodules' 1.25.8.

Unlike simply dropping root from Dependabot, this keeps root's direct dependencies (e.g. testify) under automated updates.

Notes

  • Workspace consistency is unaffected: even when submodules sit at go 1.25.8, go.work (which must be ≥ every member) stays ≥ root's 1.25.0.
  • Dependabot's cross-directory go-directive normalization is inferred from the chore(deps): bump the go-dependencies group across 3 directories with 4 updates #123 behavior rather than documented, so the first Dependabot run after this lands is worth a glance to confirm root's go directive stays put.

Sharing one multi-directory go-dependencies group with the AWS/Google
submodules made Dependabot normalize root's go directive to the group
maximum (1.25.0 -> 1.25.8 in #123) even with no root dependency change.
Isolating root in its own entry keeps its go directive driven solely by
root's own closure (go 1.24 via wfs), while still auto-updating its
direct deps.
@mojatter mojatter force-pushed the chore/dependabot-drop-root-gomod branch from ef1dbaa to fe2bdfb Compare May 31, 2026 00:57
@mojatter mojatter changed the title chore(deps): Drop root module from Dependabot gomod directories chore(deps): Split root into its own Dependabot gomod entry May 31, 2026
@mojatter mojatter merged commit 4462cec into main May 31, 2026
3 checks passed
@mojatter mojatter deleted the chore/dependabot-drop-root-gomod branch May 31, 2026 00:59
mojatter added a commit that referenced this pull request May 31, 2026
The root (/) entry sat on go.work, so Dependabot ran workspace-wide and
rewrote root's go directive even with no root dependency change. Dropping
it keeps root's go.mod untouched; this supersedes the #124 split, which
still produced a root-touching PR. Add /server so its own deps are tracked.
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