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
included multiple build tags in code so that build compilation can happen for multiple platforms
I build code for more than 1 OS - say linux and darwin. I have code that is sometimes debug only, and they can be different based on tag set "production, linux" , "production,darwin", "production", "linux", etc
in go code, I have
// +build tag1, tag2
also tried
// +build tag1, tag2
and
// +build tag1
// +build tag2
the build works. But when automating, I run "go fmt" and "golint" etc, and found that "go fmt" removes tag2 and onwards.
What did you expect to see?
go fmt must work with multiple tags
What did you see instead?
go fmt is breaking my automation build
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I have checked with only official go1.19.3
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
included multiple build tags in code so that build compilation can happen for multiple platforms
I build code for more than 1 OS - say linux and darwin. I have code that is sometimes debug only, and they can be different based on tag set "production, linux" , "production,darwin", "production", "linux", etc
in go code, I have
// +build tag1, tag2
also tried
// +build tag1, tag2
and
// +build tag1
// +build tag2
the build works. But when automating, I run "go fmt" and "golint" etc, and found that "go fmt" removes tag2 and onwards.
What did you expect to see?
go fmt must work with multiple tags
What did you see instead?
go fmt is breaking my automation build
The text was updated successfully, but these errors were encountered: