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: remove deprecated skip-go-install option #119

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

florianl
Copy link
Member

What does this PR do?

skip-go-install was removed with
golangci/golangci-lint-action@423fbaf. As this optional argument is still used in golangci-lint-action, the action fails with:

Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']

https://github.com/elastic/elastic-agent-system-metrics/actions/runs/7017910507/job/19092190110#step:6:1

skip-go-install was removed with
golangci/golangci-lint-action@423fbaf.

Signed-off-by: Florian Lehner <[email protected]>
@florianl florianl requested a review from a team as a code owner November 28, 2023 12:43
@florianl florianl requested review from ycombinator and rdner and removed request for a team November 28, 2023 12:43
Signed-off-by: Florian Lehner <[email protected]>
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
- varcheck # Finds unused global variables and constants
Copy link
Member Author

Choose a reason for hiding this comment

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

level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."

@@ -32,9 +32,7 @@ linters:
- unused # checks Go code for unused constants, variables, functions and types
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # detects when assignments to existing variables are not used
- structcheck # finds unused struct fields
Copy link
Member Author

Choose a reason for hiding this comment

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

level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."

@florianl florianl merged commit 2916826 into main Nov 29, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants