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

Use golangci-lint v1.51.2 in build image #8587

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

MichelHollands
Copy link
Contributor

What this PR does / why we need it:

Golangci-lint 1.50.0 OOMs when used with go 1.20.1. This also updates the build image.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
@MichelHollands MichelHollands requested a review from a team as a code owner February 22, 2023 14:45
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@MichelHollands MichelHollands merged commit 6dfae7c into main Feb 22, 2023
@MichelHollands MichelHollands deleted the use_different_golangci_version_for_1_20 branch February 22, 2023 15:10
@DylanGuedes DylanGuedes added type/bug Somehing is not working as expected backport release-2.7.x add to a PR to backport it into release 2.7.x labels Feb 24, 2023
@grafanabot
Copy link
Collaborator

The backport to release-2.7.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-8587-to-release-2.7.x origin/release-2.7.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 6dfae7c42d4a0ccb6790cddf5fe00c3d0e064385
# Push it to GitHub
git push --set-upstream origin backport-8587-to-release-2.7.x
git switch main
# Remove the local backport branch
git branch -D backport-8587-to-release-2.7.x

Then, create a pull request where the base branch is release-2.7.x and the compare/head branch is backport-8587-to-release-2.7.x.

DylanGuedes pushed a commit that referenced this pull request Feb 24, 2023
**What this PR does / why we need it**:

Golangci-lint [1.50.0
OOMs](golangci/golangci-lint#3538 (comment))
when used with go 1.20.1. This also updates the build image.

**Checklist**
- [ ] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`

---------

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit 6dfae7c)
DylanGuedes added a commit that referenced this pull request Feb 24, 2023
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit 6dfae7c)

---------

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-2.7.x add to a PR to backport it into release 2.7.x backport-failed size/S type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants