Specify gofumpt version in the Makefile #1266
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1266
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#1265 occurred, because one of the team members was using 0.6.0, while the others used the previous version.
In this task introduce
fumpt-install
target to install the specified version and add a separate action totests.yml
workflow.gofumpt
is already skipped by pre-commit on CI, but not used in another action, currently.@elebedeva #1370 fixes the gofumpt issue. It was introduced in #1362 where the action
https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/11191/jobs/6 succeded, even though we can see the unformatted file in its output.
Please, tell me how have you tested #1286?
I am reopening this issue to investigate.
Interestingly,
gofumpt
always returns an exit code of 0, even when it finds misformatted files (see this issue). Currently, we list all found files, so we can check if thegofumpt
output is empty with a command like this:However, we not only need to check the
gofumpt
output, but also print it. It's getting harder🫠. What about this approach?I'm unsure how hard it will be to add this into the Makefile
@fyrchik I probably missed this case because of
pre-commit
hook failing if any files were changed and I falsely assumed workflows operate the same way. Now I see thatfumt
target should fail explicitly ifgofumt
changed any files.make fumpt
should not fail, it should format.But
fumpt
action should fail.@elebedeva I've found forgejo-runner really handy for debugging actions.