Skip to content

Fix update-dependent-repositories-gomod toolchain pin - #203

Merged
bszirtes merged 1 commit into
mainfrom
fix/update-dependent-repos-toolchain
Aug 24, 2026
Merged

Fix update-dependent-repositories-gomod toolchain pin#203
bszirtes merged 1 commit into
mainfrom
fix/update-dependent-repos-toolchain

Conversation

@bszirtes

Copy link
Copy Markdown
Contributor

Problem

After #202 merged (grpc uplift to v1.82.1, which requires go >= 1.25.0),
the update-dependent-repositories-gomod workflow failed when trying
to update sdk:

Run GOPRIVATE=github.com/networkservicemesh go get -u github.com/networkservicemesh/api@main
go: go.mod requires go >= 1.24.0 (running go 1.23.3; GOTOOLCHAIN=local)
Error: Process completed with exit code 1.

The workflow's actions/setup-go step was pinned to 1.23.3, and
without GOTOOLCHAIN=auto it refuses to self-upgrade even though a
newer toolchain is available.

Fix

  • Bump the setup-go pin to 1.25.0
  • Set GOTOOLCHAIN=auto for the update step, so future go directive
    bumps in dependent repos (sdk and others in the matrix) don't hard-fail
    the same way — Go will download whatever toolchain the target module
    actually needs.

This only touches this repo's own bot workflow; no module/dependency
changes.

The bot workflow that updates sdk after a merge to main was pinned to
go-version 1.23.3, which fails now that grpc v1.82.1 (merged in #202)
requires go >= 1.25.0:

  go: go.mod requires go >= 1.24.0 (running go 1.23.3; GOTOOLCHAIN=local)

Bump the pin to 1.25.0 and set GOTOOLCHAIN=auto for the update step so
future go directive bumps in dependent repos don't hard-fail the same
way; Go will auto-download whatever toolchain the target module
actually requires instead of refusing to proceed.

Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
@bszirtes
bszirtes merged commit 7ccb73c into main Aug 24, 2026
10 of 11 checks passed
@bszirtes
bszirtes deleted the fix/update-dependent-repos-toolchain branch August 24, 2026 08:11
bszirtes added a commit to networkservicemesh/.github that referenced this pull request Aug 24, 2026
Dependent repos (sdk-k8s, sdk-kernel, cmd-nsmgr, etc.) will require
go >= 1.25.0 once they pull in the current sdk/api uplift (grpc
v1.82.1). The bot's setup-go step was pinned to 1.23.3, which fails
with:

  go: go.mod requires go >= 1.25.0 (running go 1.23.3; GOTOOLCHAIN=local)

when it runs 'go get -u .../sdk@main' + 'go mod tidy' inside each
dependent repo checkout.

Bump the pin to 1.25.0 and set GOTOOLCHAIN=auto for the update step so
future go directive bumps in any dependent repo don't hard-fail the
same way. This mirrors the same fix already applied directly in the
api repo's own copy of this workflow (networkservicemesh/api#203).

This is a shared @main-referenced workflow, so it takes effect
immediately for every consumer (api, sdk, and their dependents) once
merged.

Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
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