Skip to content

Conversation

synarete
Copy link
Collaborator

Align build tools with samba-operator (samba-in-kubernetes/samba-operator#365)

With go1.25, there's a breaking change[1] from golang.org/x/tools
pulled in by controller tools for which a fix is available in either
v0.24.1 (and above) or v0.25.1 (and above). This minimum version of
golang.org/x/tools is only included from controller tools v0.16.4.
We make use of this opportunity to fetch the latest version.

[1] golang/go#74462

Signed-off-by: Shachar Sharon <[email protected]>
With go1.24 as a oldstable release, it is recommended to use a gosec
version supporting go1.24 (from v2.22.1[1]) to avoid any unexpected
errors. Additionally fix/ignore the newly reported gosec errors.

[1] https://github.com/securego/gosec/releases/tag/v2.22.1

Signed-off-by: Shachar Sharon <[email protected]>
@synarete synarete requested a review from anoopcs9 September 25, 2025 05:59
Copy link
Contributor

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

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

Change itself looks fine but I thought we had corresponding checks in make check which is not the case here. We could add one for gosec at the very least. Even otherwise controller-gen and few others (like kustomize) might be irrelevant for smbmetrics. WDYT?

@synarete
Copy link
Collaborator Author

Change itself looks fine but I thought we had corresponding checks in make check which is not the case here. We could add one for gosec at the very least. Even otherwise controller-gen and few others (like kustomize) might be irrelevant for smbmetrics. WDYT?

Originally, I though of making it in two steps: update (same as in samba-operator) and then followup with cleanup PR. Thinking of it again, it makes no sense: will just do a proper cleanup right with in this PR.

@synarete
Copy link
Collaborator Author

Closing this PR -- need to re-think how to this cleanup properly.

@synarete synarete closed this Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants