Skip to content
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

embed.go files are not go fmt'ed #256

Open
jgresty opened this issue Nov 19, 2022 · 0 comments
Open

embed.go files are not go fmt'ed #256

jgresty opened this issue Nov 19, 2022 · 0 comments

Comments

@jgresty
Copy link
Member

jgresty commented Nov 19, 2022

The generated embed.go files get mutated if go fmt is run on them, meaning that they have to be specifically excluded from linting tools which is annoying.

diff after go fmt:

@@ -4,7 +4,8 @@ import "embed"

 // Embed compiled OpenAPI specs in Go projects.

+// Versions contains OpenAPI specs for each distinct release version.
+//
 //go:embed 2022-11-07~experimental/spec.json
 //go:embed 2022-11-07~experimental/spec.yaml
-// Versions contains OpenAPI specs for each distinct release version.
 var Versions embed.FS

go1.19.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant