-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
golangci-lint failed:[error]/bin/tar:xxxx Cannot open: File exists #23
Comments
I have the same issue |
Hi, it's because you run We need to document it better. You can run the action in a separate job, as we recommend in README to fix it. |
As suggested in [project documentation](https://github.com/golangci/golangci-lint-action/blob/master/README.md) and discussed in [#23](golangci/golangci-lint-action#23).
As suggested in [project documentation](https://github.com/golangci/golangci-lint-action/blob/master/README.md) and discussed in [#23](golangci/golangci-lint-action#23).
@jirfag Thanks for developing great apps :) |
fixed |
@silenceper Hi, could you provide more details about how you fixed it? I think it can be useful for others |
@jirfag @silenceper I just ran into the same issue. I have to run |
I remove "Get dependencies" and is works |
golangci-lint was failing. Upgraded golangci-lint to v2 and reordered it to first as a modified `go.mod` file was causing errors. ref: golangci/golangci-lint-action#23 (comment) Signed-off-by: Jacob Weinstock <[email protected]>
This reverts commit e2808a0. golangci/golangci-lint-action#23
According to golangci/golangci-lint-action#23 we should just let the action take care of installing go, etc.
Seeing issues with running golanglint-ci action, one solution was to disable package cache. https://github.com/metal-toolbox/hollow-metadataservice/actions/runs/4683823976/jobs/8299350650?pr=98 golangci/golangci-lint-action#23 (comment) Signed-off-by: Mike Mason <[email protected]>
Seeing issues with running golanglint-ci action, one solution was to disable package cache. https://github.com/metal-toolbox/hollow-metadataservice/actions/runs/4683823976/jobs/8299350650?pr=98 golangci/golangci-lint-action#23 (comment) Signed-off-by: Mike Mason <[email protected]>
* validate uuid requests Signed-off-by: Mike Mason <[email protected]> * golanglint-ci action skip-pkg-cache Seeing issues with running golanglint-ci action, one solution was to disable package cache. https://github.com/metal-toolbox/hollow-metadataservice/actions/runs/4683823976/jobs/8299350650?pr=98 golangci/golangci-lint-action#23 (comment) Signed-off-by: Mike Mason <[email protected]> --------- Signed-off-by: Mike Mason <[email protected]>
"Cannot open: File exists" golangci/golangci-lint-action#23
"Cannot open: File exists" golangci/golangci-lint-action#23
After the golangci-lint version was bumped, the linter stopped working at the ci [1]. [1] golangci/golangci-lint-action#23
After the golangci-lint version was bumped, the linter stopped working at the ci [1]. [1] golangci/golangci-lint-action#23
After the golangci-lint version was bumped, the linter stopped working at the ci [1]. [1] golangci/golangci-lint-action#23
After the golangci-lint version was bumped, the linter stopped working at the ci [1]. [1] golangci/golangci-lint-action#23
After the golangci-lint version was bumped, the linter stopped working at the ci [1]. [1] golangci/golangci-lint-action#23
This follows the recommendation in golangci/golangci-lint-action#23 (comment)
golangci-lint-action caching conflicts with the setup-go cache and `go get` above. See golangci/golangci-lint-action#23
- Removed caching from actions/setup-go before golangci/golangci-lint-action within go-lint job of lint GA workflow to avoid golangci/golangci-lint-action#23
By using the golangci-lint action after other go commands, conflicting files during the "prepare environment" phase occurred. This known issue[0] is easily fixable by putting golangci-lint in its own job. [0] golangci/golangci-lint-action#23
By using the golangci-lint action after other go commands, conflicting files during the "prepare environment" phase occurred. This known issue[0] is easily fixable by putting golangci-lint in its own job. [0] golangci/golangci-lint-action#23
- Disabled caching in `actions/setup-go` before `golangci/golangci-lint-action` within `go-lint` job in `Lint` workflow to avoid golangci/golangci-lint-action#23. - Removed redundant `cache: true` parameter from `actions/setup-go` within all the other jobs.
- Updated `actions/setup-go` to `v4`. - Set its `cache` parameter to `false` explicitly within `go-lint` job in `Lint` workflow (to avoid golangci/golangci-lint-action#23) because in `v4` it defaults to `true`. - Removed redundant `cache: true` parameter from `actions/setup-go` within all the other jobs.
- Updated `actions/setup-go` to `v4`. - Set its `cache` parameter to `false` explicitly within `go-lint` job in `Lint` workflow (to avoid golangci/golangci-lint-action#23) because in `v4` it defaults to `true`. - Removed redundant `cache: true` parameter from `actions/setup-go` within all the other jobs.
- Added `Release` GitHub workflow. - Made `call-build` job dependent on `call-lint` job. - Disabled caching in `actions/setup-go` before `golangci/golangci-lint-action` to avoid golangci/golangci-lint-action#23. - Made some minor corrections.
https://github.com/silenceper/gowatch/pull/18/checks?check_run_id=722754687
ERROR:
actions config:
It is no problem to run the
golangci-lint run
command locally, is my github action configuration wrong?The text was updated successfully, but these errors were encountered: