-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
fails with go.mod:3: invalid go version '1.22.0': must match format 1.23
#2720
Comments
I guess it might be related to: 4c2442e#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6R3 (there are some discussions in the original PR thread): #2693 (comment) Previously: 1.21, now 1.22.0. I tried to open a quick fix for it, but unfortunately I don't have time to do to it properly and thus I closed it. 😓 |
@fspaniol So I assume just dropping the patch version wasn't enough? Did you find a problem with that? |
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9 Signed-off-by: Chandan Kumar <chkumar@redhat.com>
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9 Signed-off-by: Chandan Kumar <chkumar@redhat.com>
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9 Signed-off-by: Chandan Kumar <chkumar@redhat.com> (cherry picked from commit c92983c) Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>
I'm sorry, I should have been more specific. I didn't exactly try it out because I'm on a rush to finish some things here, what I meant was that since the PR actions failed due to the best practice checks, I closed it. The fix may be valid still, but I honestly haven't tried it out. For now, in my repositories I just used the latest release tag. |
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9
Hey @sbueringer , I managed to find the time to go a bit deeper on this and opened a new PR with some insights: #2722 |
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9 Co-Authored-By: Balazs Gibizer <gibi@redhat.com>
If Alternatively, using go workspaces might allow the parent tag to work for child modules. I ran into a similar problem trying to use setup-envtest@latest, which now requires Go 1.22. Not having tags makes it hard to pin to an old version. I ended up using |
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9 Co-Authored-By: Balazs Gibizer <gibi@redhat.com>
Currently being bitten by kubernetes-sigs/controller-runtime#2720 Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
Latest is currently broken, see kubernetes-sigs/controller-runtime#2720
See kubernetes-sigs/controller-runtime#2720 Signed-off-by: Blake Devcich <blake.devcich@hpe.com>
Thx for taking a closer look! I think it's important that we have a go.mod file which won't be updated after running go mod tidy (or other go commands). As far as I can tell there is no way to do this with Also based on the delta here: https://go-review.googlesource.com/c/go/+/560855/8/src/cmd/vendor/golang.org/x/mod/modfile/rule.go I think they basically changed the format of the go version: So I think we have no other choice than using I think adding tags for |
This will fix CI issues. This is a work around for an upstream issue: kubernetes-sigs/controller-runtime#2720 Signed-off-by: Barak Korren <bkorren@redhat.com>
* chore(deps): update rhtap references * Pin to a non-breaking version of setup-envtest kubernetes-sigs/controller-runtime#2720 The minimum required Go version for setup-envtes was bumped to 1.22, breaking us. Pin to release-0.16, which doesn't use 1.22 yet. It uses 1.21, which is still higher than what we use, but back then Go didn't enforce the version requirement yet. Signed-off-by: Adam Cmiel <acmiel@redhat.com> --------- Signed-off-by: Adam Cmiel <acmiel@redhat.com> Co-authored-by: red-hat-konflux <123456+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: Adam Cmiel <acmiel@redhat.com>
Just a side note: controller-runtime is expected to fail with Go versions < 1.22. That's basically what the |
This commit pins the envtest version to work aound an upstream issue in: kubernetes-sigs/controller-runtime#2720 Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com> (cherry picked from commit a40f521)
This commit pins the envtest version to work aound an upstream issue in: kubernetes-sigs/controller-runtime#2720 Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com> (cherry picked from commit a40f521)
Yes, but the problem is that the instructions here say to use latest when executing envtest. So if you don't have Go 1.22+ installed, that go install command suddenly started failing when controller-runtime was updated. And because there's no git tag for this submodule, there's no easy way to pin to an old version using the same semver as the parent module. So you're stuck trying to find the exact commit you need to pin to that matches the old version of config-runtime you're using. On top of that, recent config-management changes have several reverse incompatible interface changes, making upgrade non-trivial. So everyone using envtest is now forced to do work to fix their environment. |
I think if you were happy before with using latest, it should be fine to pin to a release branch, e.g. I wonder if we didn't have the same problem before as we specify a min go version in the tools/setup-envtest/go.mod file (before 1.22 it was 1.20). |
kubernetes-sigs/controller-runtime#2720 Signed-off-by: Christian Groschupp <christian@groschupp.org>
kubernetes-sigs/controller-runtime#2693 broke the content provider while doing docker-build with following issue[1] In order to unblock the CI, we are pinning sigs.k8s.io/controller-runtime/tools/setup-envtest at previous working commit[2] [1]. kubernetes-sigs/controller-runtime#2720 [2]. kubernetes-sigs/controller-runtime@c7e1dc9 Signed-off-by: Chandan Kumar <chkumar@redhat.com>
* create partman extension in partman schema and grant access * update golang version * pinned version of envtest to avoid kubernetes-sigs/controller-runtime#2720
This fixes our current ci issues. Seems like some dependencies have updated to go1.22 and operator-sdk generate is not backwards compatible. kubernetes-sigs/controller-runtime#2720 has some details. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
This fixes our current ci issues. Seems like some dependencies have updated to go1.22 and operator-sdk generate is not backwards compatible. kubernetes-sigs/controller-runtime#2720 has some details. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
This fixes our current ci issues. Seems like some dependencies have updated to go1.22 and operator-sdk generate is not backwards compatible. kubernetes-sigs/controller-runtime#2720 has some details. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
* build(deps): bump k8s.io/apiextensions-apiserver from 0.29.3 to 0.30.0 Bumps [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) from 0.29.3 to 0.30.0. - [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases) - [Commits](kubernetes/apiextensions-apiserver@v0.29.3...v0.30.0) --- updated-dependencies: - dependency-name: k8s.io/apiextensions-apiserver dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build: require go v1.22 This fixes our current ci issues. Seems like some dependencies have updated to go1.22 and operator-sdk generate is not backwards compatible. kubernetes-sigs/controller-runtime#2720 has some details. Signed-off-by: Jan Fajerski <jfajersk@redhat.com> * chore: generate Signed-off-by: Jan Fajerski <jfajersk@redhat.com> * chore: update controller-runtime to 0.18.2 With the go1.22 update and controller-runtime 0.17.x the project doesn't build. Signed-off-by: Jan Fajerski <jfajersk@redhat.com> * chore: remove unused code Signed-off-by: Jan Fajerski <jfajersk@redhat.com> * ci: setup go after starting kind Also update kind version and kind-action version. Signed-off-by: Jan Fajerski <jfajersk@redhat.com> * chore: minor fixes Signed-off-by: Mario Fernandez <mariofer@redhat.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jan Fajerski <jfajersk@redhat.com> Signed-off-by: Mario Fernandez <mariofer@redhat.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jan Fajerski <jfajersk@redhat.com>
Latest version of setup-envtest can only works with Go 1.22, since we are not yet using it let's pin the setup-envtest version Unfortunatly there is no real tag for setup-envtest so we have to use long tag commit hash Sees: kubernetes-sigs/controller-runtime#2720 (cherry picked from commit 8d67943)
Installing latest version of setup-envtest fails with the following error log.
Go version
Could be related to golang/go#61888 ?
The text was updated successfully, but these errors were encountered: