Skip to content

Commit

Permalink
updated explanatory comment, removed old comment
Browse files Browse the repository at this point in the history
  • Loading branch information
balopat authored Sep 20, 2019
1 parent 8a4bb99 commit 97e70de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hack/versions/pkg/schema/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ import (
const releasedComment = `// !!! WARNING !!! This config version is already released, please DO NOT MODIFY the structs in this file.`
const unreleasedComment = `// This config version is not yet released, it is SAFE TO MODIFY the structs in this file.`

// if you're updating a comment, add the old version here
// historicalVersionComments is used to recognize that this comment is a release comment
// if you want to change a comment historically on all files, add the current version here and then change the
// text of releasedComment and unreleasedComment, and then run `go run hack/versions/cmd/update_comments/main.go`
var historicalVersionComments = []string{
`// This config version is already released, please DO NOT MODIFY the structs in this file.`,
releasedComment,
unreleasedComment,
}
Expand Down

0 comments on commit 97e70de

Please sign in to comment.