Description
See this failing PR action for an example of the problem. If you run make generate and then run make lint, the linter changes tag order of generated files. This then fails the CI check that tries to make sure there is no diff between cleanly generated files and the linted files committed in the PR.
It stems from the following step:
golangci-lint run --no-config --fix --default=none -E tagalign --timeout 10m
Steps to Reproduce
- Make any code change that will tweak generated API routes or documentation.
- Run
make generate and then stage the changes.
- Run
make lint and see newly unstaged changes to those generated files.
Version
n/a
Operating System
MacOS
Database Backend
SQLite
Additional context
No response
Description
See this failing PR action for an example of the problem. If you run
make generateand then runmake lint, the linter changes tag order of generated files. This then fails the CI check that tries to make sure there is no diff between cleanly generated files and the linted files committed in the PR.It stems from the following step:
Steps to Reproduce
make generateand then stage the changes.make lintand see newly unstaged changes to those generated files.Version
n/a
Operating System
MacOS
Database Backend
SQLite
Additional context
No response