-
-
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
How can i get more detail infos in the golang-lint-action #618
Comments
Just came here to see if I'm doing something wrong. I'm facing the same issue. Coming from GitLab CI where the error, line number and file name is easily available to paste it into my IDE (bringing me to the exact spot the issue is happening) this absence is very confusing. |
maybe #119 (comment) is useful for you to resolve it, but it is not be the best way |
@ldez I resolved this issue by #119 (comment), but I think it is not the best way. Because there is a param in .golangci.yaml like following: |
With the new version of the action (v3.6.0) you can now provide extra args to add extra output format. Example: - name: Golangci Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.2
args: --out-format=colored-line-number https://golangci-lint.run/usage/configuration/#output-configuration Related to #769 |
@ldez |
It must be defined through CLI flags like in my example. |
yeah, your example is ok . And in https://golangci-lint.run/usage/configuration/#output-configuration also has a setting item to config the output format, so i think should it also can read from the .golangci.yml? 😄 |
The action doesn't read the configuration file because the expected outputs on a CI are different than the local outputs. So you need to use CLI flags. |
ok , got it ~ |
Welcome
Description of the problem
the logs is too few, and i cannot judge what the problem in the logs.
How can i get more detail infos in the golang-lint-action
In local, if i exec the command directly , it will print the detail infos, like following:
Version of golangci-lint
latest
Version of the GitHub Action
golangci/golangci-lint-action@v3
Workflow file
Go version
1.18
Code example or link to a public repository
https://github.com/opensergo/opensergo-go-sdk/actions/runs/3627078730/jobs/6116638569
.golangci.yml
The text was updated successfully, but these errors were encountered: