You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug swag fmt touches go files in the directory regardless of whether any changes were made in each of those files.
This minor detail comes to bite anyone who uses live-update build tools (e.g. observed with Tilt): if you want to automatically run swag fmt on changes to go files, this bumps lastmodified time, which then triggers another swag fmt, which ...
To Reproduce
run swag fmt to make sure all comments are properly formatted
Describe the bug
swag fmt
touches go files in the directory regardless of whether any changes were made in each of those files.This minor detail comes to bite anyone who uses live-update build tools (e.g. observed with Tilt): if you want to automatically run
swag fmt
on changes to go files, this bumps lastmodified time, which then triggers anotherswag fmt
, which ...To Reproduce
swag fmt
to make sure all comments are properly formattedswag fmt
againExpected behavior
When no changes are made to a file,
swag fmt
should leave it as-is, without replacing/touchingYour swag version
e.g. 1.8.12
Your go version
e.g. 1.20.5
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: