Skip to content

fix: setup go with the correct version in nix GHA#1838

Merged
frewilhelm merged 2 commits intoopen-component-model:mainfrom
frewilhelm:fix-wf-nix
Feb 27, 2026
Merged

fix: setup go with the correct version in nix GHA#1838
frewilhelm merged 2 commits intoopen-component-model:mainfrom
frewilhelm:fix-wf-nix

Conversation

@frewilhelm
Copy link
Contributor

@frewilhelm frewilhelm commented Feb 25, 2026

The nix GHA is failing since some time because

go: go.mod requires go >= 1.25.7 (running go 1.25.6; GOTOOLCHAIN=local)
error: Cannot build '/nix/store/1arisjbbjkpskw54dw6bc6yxk0n6l5n5-ocm-0.38.0-dev-go-modules.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/is2w1y4jiq77cs23sn4p80ghg7dpks4g-ocm-0.38.0-dev-go-modules
       Last 8 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/dgf3q1lwrymkbkrqfjhl3khxc5n1qmjw-4bll3adr8nm188wb6r8i22ga5czqvpm5-source
       > source root is 4bll3adr8nm188wb6r8i22ga5czqvpm5-source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > go: go.mod requires go >= 1.25.7 (running go 1.25.6; GOTOOLCHAIN=local)

Currently, go is installed via nix and apparently there is no version 1.25.7 available.

By using go version 1.26 the workflow runs again

@github-actions github-actions bot added kind/bugfix Bug component/github-actions Changes on GitHub Actions or within `.github/` directory size/xs Extra small labels Feb 25, 2026
@frewilhelm frewilhelm marked this pull request as ready for review February 25, 2026 14:15
@frewilhelm frewilhelm requested a review from a team as a code owner February 25, 2026 14:15
@frewilhelm
Copy link
Contributor Author

Unfortunately, this won't fix the workflow

@frewilhelm frewilhelm marked this pull request as draft February 25, 2026 14:18
@hilmarf
Copy link
Member

hilmarf commented Feb 25, 2026

Unfortunately, this won't fix the workflow

maybe @vasu1124 can jump in here :-) ?

And I'm not sure, but it looks, like nix supports now also:

  go_latest = go_1_26;
  buildGoLatestModule = buildGo126Module;

so it might work, when you change that in https://github.com/open-component-model/ocm/blob/main/flake.nix#L33 and https://github.com/open-component-model/ocm/blob/main/flake.nix#L95

@github-actions github-actions bot added kind/skip-release-notes Pull request will not appear in release notes size/s Small labels Feb 25, 2026
@frewilhelm
Copy link
Contributor Author

And I'm not sure, but it looks, like nix supports now also:

Good catch - that worked on my fork. Thanks!

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@frewilhelm frewilhelm marked this pull request as ready for review February 25, 2026 14:38
@frewilhelm frewilhelm requested a review from hilmarf February 25, 2026 15:05
@frewilhelm frewilhelm merged commit 83f101f into open-component-model:main Feb 27, 2026
21 checks passed
@frewilhelm frewilhelm deleted the fix-wf-nix branch March 3, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/github-actions Changes on GitHub Actions or within `.github/` directory kind/bugfix Bug kind/skip-release-notes Pull request will not appear in release notes size/s Small size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants