-
Notifications
You must be signed in to change notification settings - Fork 66
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
chore: bump go version to 1.22 #1112
Conversation
82cb31b
to
d74ec1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder what go version is used by grafana-plugin-ci in drone.yml (build) and whether we need to update that.
Always confused by where grafana/grafana-plugin-ci docker image are defined/pushed from. This is one of the benefits migrating from drone to github actions (that other issue) so maybe we can wait with updating drone and migrate to github actions after this is merged. WDYT?
c7851c7
to
7d1f883
Compare
https://github.com/grafana/grafana-drone-extension/blob/main/images/grafana-plugin-ci/scripts/deploy.sh#L22 so the go version here is 1.21.3. For migrating to GA using |
ee958ec
to
25c8440
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach sounds good to me, not sure why you are getting compilation errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can lint, build and test in the same job perhaps to simplify? Have you run go mod tidy
after update of go.mod?
d59787f
to
ef8c5f7
Compare
ef8c5f7
to
c1136c8
Compare
@andresmgot @marefr |
implements #1079 |
Please add this to the PR description as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Some minor things left
e2db36b
to
3c5c420
Compare
@s4kh I think we just have to disable the repository in Drone: https://drone.grafana.net/grafana/grafana-plugin-sdk-go/settings We have to do that after we merge this PR tho |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! 🙌 👏 👏
Just a small nit, but LGTM otherwise
5f4657d
to
355e782
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a suggestion
I think we can remove it and make the new one required before merging this - let us know |
453d53a
to
3cefb3b
Compare
Do we set the required option in the GitHub settings? I'll disable the drone CI in https://drone.grafana.net/grafana/grafana-plugin-sdk-go/settings. |
env: | ||
GOLANGCI_LINT_VERSION: v1.61.0 | ||
|
||
jobs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was recommended by the golangci-lint docs to use separate job - https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though it works in the single job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm okay 🤔 Guess it depends on if you want to run lint in parallel with build/test vs all three synchronously. No strong opinions really, it was more convenient for having one required check and configuring the branch protection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged into single job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready to rumble. ✔️
fe5a3f1
to
306e09e
Compare
306e09e
to
52c1243
Compare
@marefr for development have you configured |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I modified the branch protection rules
What this PR does / why we need it:
To allow otel dependency updates (which dropped support for Go 1.21)
Which issue(s) this PR fixes:
Fixes #1107
Fixes #1079
Special notes for your reviewer:
Updated grafana/grafana-plugin-examples#396 grafana/plugin-tools#1212