Skip to content

Commit a260f13

Browse files
authored
Merge pull request #595 from benpbrown/ben-2c9e4
✨: deepcopy: gen: match Go 1.17 build tag format
2 parents 25549bf + de20394 commit a260f13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/deepcopy/gen.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ type ObjectGenCtx struct {
175175
// writeHeader writes out the build tag, package declaration, and imports
176176
func writeHeader(pkg *loader.Package, out io.Writer, packageName string, imports *importsList, headerText string) {
177177
// NB(directxman12): blank line after build tags to distinguish them from comments
178-
_, err := fmt.Fprintf(out, `// +build !ignore_autogenerated
178+
_, err := fmt.Fprintf(out, `//go:build !ignore_autogenerated
179+
// +build !ignore_autogenerated
179180
180181
%[3]s
181182

0 commit comments

Comments
 (0)