Skip to content

Commit

Permalink
Don't paste the entire command-line into the generated file
Browse files Browse the repository at this point in the history
This helps us avoid diffs between Bazel-based builds and `go build`-driven builds.
  • Loading branch information
rickystewart committed Nov 12, 2021
1 parent 1f7f392 commit 642e514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/stringer/stringer.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func main() {
g.parsePackage(args, tags)

// Print the header and package clause.
g.Printf("// Code generated by \"stringer %s\"; DO NOT EDIT.\n", strings.Join(os.Args[1:], " "))
g.Printf("// Code generated by \"stringer\"; DO NOT EDIT.\n")
g.Printf("\n")
g.Printf("package %s", g.pkg.name)
g.Printf("\n")
Expand Down

0 comments on commit 642e514

Please sign in to comment.