Skip to content

Commit

Permalink
chore: specify updated version of stringer tool in go generate
Browse files Browse the repository at this point in the history
We need a newer version to avoid panics with newer go versions, and
this should also be versioned independently from go.mod

Signed-off-by: justinsb <justinsb@google.com>
  • Loading branch information
justinsb committed Mar 28, 2024
1 parent 1afc74e commit d6a77b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porch/pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type GitRepository interface {
UpdateDeletionProposedCache() error
}

//go:generate go run golang.org/x/tools/cmd/stringer -type=MainBranchStrategy -linecomment
//go:generate go run golang.org/x/tools/cmd/stringer@v0.19.0 -type=MainBranchStrategy -linecomment
type MainBranchStrategy int

const (
Expand Down

0 comments on commit d6a77b5

Please sign in to comment.