Skip to content
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

renovate: fix renovate upgrade of Go toolchain #1579

Merged
merged 1 commit into from Oct 11, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Oct 11, 2023

PR #1536 broke "renovate update Go toolchain in a single PR" from #1259 because in the actual state it could only bump the go directive from minor versions, not bumping the patch needed by the workflows github actions reading that version.

From cilium/cilium@2f7e2f3: According to [1] as of Go 1.21 we either need to specify the full toolchain version in the go directive or add a toolchain directive with the concrete toolchain version. Opt for the former and make sure it's kept up to date by renovate bot.

[1] golang/go#62278 (comment)

PR #1536 broke "renovate update Go toolchain in a single PR" from #1259
because in the actual state it could only bump the go directive from
minor versions, not bumping the patch needed by the workflows github
actions reading that version.

From cilium/cilium@2f7e2f3:
According to [1] as of Go 1.21 we either need to specify the full
toolchain version in the `go` directive or add a `toolchain` directive
with the concrete toolchain version. Opt for the former and make sure
it's kept up to date by renovate bot.

[1] golang/go#62278 (comment)

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy added area/ci Related to CI release-note/ci This PR makes changes to the CI. labels Oct 11, 2023
@mtardy mtardy requested a review from a team as a code owner October 11, 2023 09:59
@mtardy mtardy requested review from tixxdz, kkourt, willfindlay and michi-covalent and removed request for tixxdz October 11, 2023 09:59
Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Copy link
Contributor

@willfindlay willfindlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's good enough for Cilium, it's good enough for me

@mtardy
Copy link
Member Author

mtardy commented Oct 11, 2023

Thanks that was fast, hopefully, this works! :) We'll see here #1577

@mtardy mtardy merged commit 007c0c9 into main Oct 11, 2023
31 checks passed
@mtardy mtardy deleted the pr/mtardy/fix-renovate-go-upgrade branch October 11, 2023 13:57
michi-covalent added a commit to cilium/cilium-cli that referenced this pull request Oct 18, 2023
Configure Renovate to update Go version in go.mod, and modify workflow
files to use go.mod to get the Go version to reduce the number of places
Renovate needs to update.

Ref: cilium/tetragon#1579

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Related to CI release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants