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
Does this issue reproduce with the latest release?
Upgrade to go 1.19 causes this issue.
What operating system and processor architecture are you using (go env)?
I think this affect all support plaforms.
What did you do?
I have one repo inited by kubebuilder, witch is using code generation, all works fine, but upgrade to go1.19 the //+ will be formatted to // + then code generation breaks.
What did you expect to see?
Nothing to change as code file already go fmted.
What did you see instead?
@@ -15,8 +15,8 @@ limitations under the License.
*/
// Package v1 contains API Schema definitions for the app v1 API group
-//+kubebuilder:object:generate=true-//+groupName=test.com+// +kubebuilder:object:generate=true+// +groupName=test.com-//nolint+// nolint
package v1
import (
The text was updated successfully, but these errors were encountered:
zzjin
changed the title
affected/package: Go1.19 go fmt breaks packege's code generation
affected/package: Go1.19 go fmt breaks package's code generation
Aug 9, 2022
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Upgrade to go 1.19 causes this issue.
What operating system and processor architecture are you using (
go env
)?I think this affect all support plaforms.
What did you do?
I have one repo inited by
kubebuilder
, witch is usingcode generation
, all works fine, but upgrade to go1.19 the//+
will be formatted to// +
then code generation breaks.What did you expect to see?
Nothing to change as code file already
go fmt
ed.What did you see instead?
The text was updated successfully, but these errors were encountered: