-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Use own Go version instead of hardcoded 1.17 for make fmt
#21457
Conversation
This whole The canonical way to specify go version to gofumpt is through
|
I do not like the Not sure whether the situation (eco-system) has been better now, if the |
well i dont understand why one would programm on windows, but there are always the one who are forced to do so ... :/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the only need for the code-batch-process is misspell
, which still takes a file list as arguments.
I think we can get this PR at the moment and refactor the building system later, remove out-dated tools.
Update:
Actually, after
The misspell is never used, the only sub-command call to code-batch-format
is gitea-fmt
, no misspell
anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me.
But I have a feeling that the code-batch-process
will be removed soon and the Makefile will call the gitea-fmt directly without this wrapper.
Sounds good to me, until then we can land thia |
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
🚀 |
It also runs the gitea import formatter. |
Yup, I meant "which still takes a file list as arguments.", only the old misspell command needs it. For gitea import formatter, it could be simplified to scan the source directory directly, no need for the code-batch-process wrapper anymore. I think it's time to drop the code-batch-process wrapper (I will take the work) |
--> Remove code-batch-process #21471 |
We should make sure we're using the same version across the codebase.
gitea/build/code-batch-process.go
Line 273 in 6bb6a10