Skip to content

Commit

Permalink
Merge pull request #595 from benpbrown/ben-2c9e4
Browse files Browse the repository at this point in the history
✨: deepcopy: gen: match Go 1.17 build tag format
  • Loading branch information
k8s-ci-robot committed May 6, 2022
2 parents 25549bf + de20394 commit a260f13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/deepcopy/gen.go
Expand Up @@ -175,7 +175,8 @@ type ObjectGenCtx struct {
// writeHeader writes out the build tag, package declaration, and imports
func writeHeader(pkg *loader.Package, out io.Writer, packageName string, imports *importsList, headerText string) {
// NB(directxman12): blank line after build tags to distinguish them from comments
_, err := fmt.Fprintf(out, `// +build !ignore_autogenerated
_, err := fmt.Fprintf(out, `//go:build !ignore_autogenerated
// +build !ignore_autogenerated
%[3]s
Expand Down

0 comments on commit a260f13

Please sign in to comment.