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

mimir-build-image: Upgrade golangci-lint #8385

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Jun 17, 2024

What this PR does

Upgrade to golangci-lint v1.59.1.

An issue with this upgrade is that staticcheck now complains about reflect.*Header being deprecated. I fix it in one test, since it was easy, but leave other cases ignored by the linter (nolint:staticcheck) to unblock the PR.

pkg/mimirpb/timeseries_test.go:108:25: SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead. (staticcheck)

Which issue(s) this PR fixes or relates to

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Copy link
Contributor

Building new version of mimir-build-image. After image is built and pushed to Docker Hub, a new commit will automatically be added to this PR with new image version grafana/mimir-build-image:pr8385-000f1b4a10. This can take up to 1 hour.

@aknuds1 aknuds1 force-pushed the arve/upgrade-golangci-lint branch from 98d6f39 to a29d34e Compare June 17, 2024 06:54
Copy link
Contributor

Building new version of mimir-build-image. After image is built and pushed to Docker Hub, a new commit will automatically be added to this PR with new image version grafana/mimir-build-image:pr8385-000f1b4a10. This can take up to 1 hour.

@aknuds1 aknuds1 force-pushed the arve/upgrade-golangci-lint branch from a29d34e to 1002687 Compare June 17, 2024 07:04
Copy link
Contributor

Building new version of mimir-build-image. After image is built and pushed to Docker Hub, a new commit will automatically be added to this PR with new image version grafana/mimir-build-image:pr8385-000f1b4a10. This can take up to 1 hour.

@aknuds1 aknuds1 force-pushed the arve/upgrade-golangci-lint branch from ff4648e to 5797548 Compare June 17, 2024 07:45
Copy link
Contributor

Not building new version of mimir-build-image. This PR modifies mimir-build-image/Dockerfile, but the image grafana/mimir-build-image:pr8385-000f1b4a10 already exists.

@aknuds1 aknuds1 added the chore label Jun 17, 2024
@aknuds1 aknuds1 marked this pull request as ready for review June 17, 2024 08:07
@aknuds1 aknuds1 requested review from wilfriedroset, vaxvms, bubu11e and a team as code owners June 17, 2024 08:07
@aknuds1 aknuds1 merged commit 4c02b83 into main Jun 17, 2024
32 checks passed
@aknuds1 aknuds1 deleted the arve/upgrade-golangci-lint branch June 17, 2024 09:29
grafanabot pushed a commit that referenced this pull request Jul 4, 2024
Signed-off-by: Arve Knudsen <[email protected]>
(cherry picked from commit 4c02b83)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants