-
-
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
typecheck fails on first CI run #902
Comments
Have you read Why do you have
What happens if you try to compile your code before the linting step with |
Yes, I read the notes about typecheck and followed the instructions there but it didn't help.
Whereas with the successful runs, setup-go finds the local cache.
I didn't think it would be necessary to run a |
Sorry, I misread parts of your ticket and didn't realize it worked by just retrying. It's so common with these
|
I'm having a similar issue.
I get typecheck failures. When I added a
It works. @pgier Did you find a different solution? |
Signed-off-by: Sam Yuan <[email protected]>
* fix lint issue ref golangci/golangci-lint-action#902 Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> --------- Signed-off-by: Sam Yuan <[email protected]>
@ohad83 looks like you didn't have to run a full |
Running a |
This is recommended by the `golangci-lint` README, see https://github.com/golangci/golangci-lint-action/blob/e637d2bbe4e0571eb57bfc3615ba14992312228d/README.md#compatibility: > * `v4.0.0+` requires an explicit setup-go installation step before > using this action: `uses: actions/setup-go@v5`. The > `skip-go-installation` option has been removed. `go mod download` is also run before `golangci-lint` just in case because it fixed some people's problems (see golangci/golangci-lint-action#902 (comment)). It is also re-added to the "Test" job, because it turned out that `actions/setup-go@v5` doesn't download dependencies as I thought it would.
Welcome
Description of the problem
I'm seeing seeing typecheck errors always on the first run of my pull request CI. When I manually re-run the failed job, then the lint succeeds.
The problem just started recently (past two weeks) and the problem doesn't seem to happen with 1.54.x.
Version of golangci-lint
1.55.2
Version of the GitHub Action
v3
Workflow file
Go version
1.21
Code example or link to a public repository
I checked the code related to the reported errors and found that they are not valid. Running golangci-lint locally also works fine.
The text was updated successfully, but these errors were encountered: