Skip to content

goVersion in ocm-kit/flake.nix is ignored #43

Description

@iljaweis

What happened:

Tried to build ocm-kit with a newer Go version, but it failed (https://github.com/open-component-model/community/actions/runs/32953542923/job/98131712476#step:5:8). It takes the exact Go version from https://github.com/open-component-model/community/blob/main/ocm-kit/flake.nix#L21. I can update that, but I noticed that the devshell does not respect that version:

bash-5.3# nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
bash-5.3# which go
/nix/store/33fw5m31lfcnk4ff2f0df7j2bxnh8lgk-go-1.26.3/bin/go
bash-5.3# go version
go: downloading go1.26.4 (linux/amd64)

(the go download is caused by go.mod)

What you expected to happen:

devshell contains Go 1.26.4

How to reproduce it (as minimally and precisely as possible):

Run a nix devshell in community and check the go version (go to a different directory without go.mod)

bash-5.3# nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
bash-5.3# which go
/nix/store/33fw5m31lfcnk4ff2f0df7j2bxnh8lgk-go-1.26.3/bin/go
bash-5.3# cd /tmp
bash-5.3# go version
go version go1.26.3 linux/amd64

Anything else we need to know:

I'll submit a MR with a fix.

Environment:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions