Skip to content

Bump Go to v1.24, and golangci-lint to v2.2.1#211

Merged
negz merged 1 commit into
crossplane:mainfrom
negz:bump
Jul 14, 2025
Merged

Bump Go to v1.24, and golangci-lint to v2.2.1#211
negz merged 1 commit into
crossplane:mainfrom
negz:bump

Conversation

@negz

@negz negz commented Jul 11, 2025

Copy link
Copy Markdown
Member

Description of your changes

Bump the things, fix the newly detected linter issues.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

@negz negz changed the title Bump Go to v1.23, and golangci-lint to v2.2.1 Bump Go to v1.24, and golangci-lint to v2.2.1 Jul 12, 2025
@negz negz force-pushed the bump branch 2 times, most recently from 48fdcf7 to e687a62 Compare July 12, 2025 06:28
Signed-off-by: Nic Cope <nicc@rk0n.org>

@jbw976 jbw976 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks reasonable enough, but would appreciate any insight you have about caching - if you already have it handy that is :)

Comment thread .github/workflows/ci.yml
with:
go-version: ${{ env.GO_VERSION }}

- name: Find the Go Build Cache

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i understand go 1.24 has nice new external caching support, so I assume that's why these explicit caching steps are being removed, but I'm having trouble finding anything that says how it works in a github actions environment. do you already have resource like that on hand?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread resource/composed/composed.go
// determine their apiVersion and kind.
v1beta2.AddToScheme(Scheme)

// Output:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this leftover from operations work ongoing at the same time?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, a linter complained that the example needs an Output block to be valid for go test, which can test examples. In this case it expects no output.

@negz negz merged commit d8be5da into crossplane:main Jul 14, 2025
8 of 9 checks passed
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