`install-only` does not work in v8
### Welcome
- [x] Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
- [x] Yes, I've searched similar issues on GitHub and didn't find any.
- [x] Yes, I've included all information below (version, config, etc).
### Description of the problem
I followed the example from the documentation for the `install-only` option directly. However, it does not work with v8. When I switched to v9, it worked as expected.
With v8, a warning is given:
```
Unexpected input(s) 'install-only', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'verify', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
```
It then proceeds to run the checks anyway.
### Version of golangci-lint
v2.6.2
### Version of the GitHub Action
v8
### Workflow file
```yml
name: Continuous Integration
on:
workflow_dispatch: {}
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
name: Quality Audit
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v8
with:
install-only: true
- name: Run CI Audit
run: make audit-ci
```
### Golangci-lint configuration
Not using a configuration file (default behavior)
### Go version
1.25
### Code example or link to a public repository
No, thank you. The project is not open source.
0 条评论