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

Update fluxcd/pkg deps and k8s deps to 1.31.1 #931

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

darkowlzz
Copy link
Contributor

No description provided.

@darkowlzz darkowlzz added the dependencies Pull requests that update a dependency label Sep 25, 2024
@darkowlzz darkowlzz changed the title Update fluxcd/pkg and k8s deps to 1.31.1 Update fluxcd/pkg deps and k8s deps to 1.31.1 Sep 25, 2024
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

The api package needs to be updated too, also the controller go.mod should be on the same version on SC go.mod which is go 1.22.5.

github.com/fluxcd/pkg/git v0.20.0
github.com/fluxcd/pkg/apis/event v0.10.1
github.com/fluxcd/pkg/apis/meta v1.6.1
github.com/fluxcd/pkg/git v0.21.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The CI failed because the following gets added to go.mod

go 1.22.4

toolchain go1.23.1

See https://github.com/fluxcd/notification-controller/actions/runs/11034734990/job/30649008796#step:10:19.

After closer inspection by updating the packages one by one, this happens only when pkg/git is updated. Looking at pkg/git's go.mod, there's go 1.22.4 in the mod file https://github.com/fluxcd/pkg/blob/30c101fc7c9fac4d84937ff4890a3da46a9db2dd/git/go.mod#L3. Everywhere else, I believe we have it to 1.22.0.

pkg/git is also imported in SC but there we didn't need such a change.

After try a few things, it seems updating the go version in the go.mod file removes the need for toolchain. This is what SC has it, go 1.22.5.

@darkowlzz
Copy link
Contributor Author

CI failures have been resolved and also updated the api package. Should be good now.

@stefanprodan stefanprodan merged commit 7d279b9 into main Sep 25, 2024
6 checks passed
@stefanprodan stefanprodan deleted the deps-update branch September 25, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants