-
Notifications
You must be signed in to change notification settings - Fork 286
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
omitzero is not allowed #1242
Comments
Hi @sbp-bvanb thanks for reporting the issue. Support for Edit: indeed, #1238 is included in the last version. Does your .mod specify go version 1.24 ? |
@chavacava We are using golangci-lint. I did not check whether that tool uses 1.7.0 of revive under the hood. |
It seemed to have been merged. We will have to wait for the next release of golangci-lint. |
AFAIK, The last version of golangci-lint does not include v1.7.0 of revive. |
Describe the bug
A clear and concise description of what the bug is.
Since 1.24, omitzero has been introduced.
To Reproduce
Steps to reproduce the behavior:
go install github.com/mgechev/revive@latest
struct-tag: unknown option 'omitzero' in JSON tag (revive)
# flags revive ...
# config file
Expected behavior
A clear and concise description of what you expected to happen.
Logs
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: