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

ci: Fix golangci-lint installation #1424

Merged
merged 2 commits into from Apr 2, 2024

Conversation

arukiidou
Copy link
Contributor

@arukiidou arukiidou commented Mar 27, 2024

golangci-lint run no longer accepts --version,
so the hack we employ to install it using the official action
no longer works.

This replaces the flag with --help, and fixes broken CI.

Resolves #1423

Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
@arukiidou arukiidou changed the title remove golangci-lint --version flags remove golangci-lint --version flags, ci fixed. Mar 27, 2024
@arukiidou arukiidou changed the title remove golangci-lint --version flags, ci fixed. build: remove golangci-lint --version flags, ci fixed. Mar 27, 2024
Copy link
Collaborator

@abhinav abhinav left a comment

Choose a reason for hiding this comment

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

Thanks for catching and fixing. I've got a minor change suggestion.

.github/workflows/go.yml Outdated Show resolved Hide resolved
@abhinav abhinav changed the title build: remove golangci-lint --version flags, ci fixed. ci: Fix golangci-lint installation Mar 27, 2024
@abhinav
Copy link
Collaborator

abhinav commented Mar 27, 2024

@r-hang @JacobOaks It looks like codecov token isn't set.

https://github.com/uber-go/zap/actions/runs/8454727528/job/23160466933?pr=1424#step:6:48

error - 2024-03-27 15:53:08,413 -- Upload failed: {"detail":"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 1886 seconds."}

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.69%. Comparing base (b39f8b6) to head (8a8ce0f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1424   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files          53       53           
  Lines        2997     2997           
=======================================
  Hits         2958     2958           
  Misses         31       31           
  Partials        8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@JacobOaks JacobOaks left a comment

Choose a reason for hiding this comment

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

Thank you!

@JacobOaks JacobOaks merged commit b15585b into uber-go:master Apr 2, 2024
8 checks passed
JacobOaks added a commit to JacobOaks/fx that referenced this pull request Apr 2, 2024
Following uber-go/zap#1424 as an example,
fix CI to use `--help` flag since `--version` is no longer accepted.

(example issue: https://github.com/uber-go/fx/actions/runs/8469190208/job/23203935028?pr=1182)
sywhang pushed a commit to uber-go/fx that referenced this pull request Apr 2, 2024
Following uber-go/zap#1424 as an example, fix CI
to use `--help` flag since `--version` is no longer accepted.

(example issue:
https://github.com/uber-go/fx/actions/runs/8469190208/job/23203935028?pr=1182)
@arukiidou arukiidou deleted the fix/golangci-lint branch April 2, 2024 22:25
JacobOaks added a commit to JacobOaks/sally that referenced this pull request Apr 29, 2024
Following uber-go/zap#1424 and
uber-go/fx#1185 as examples.

`--version` is no longer accepted. Use `--help` instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ci broken: golangci-lint changes breaks lint.
3 participants