From d6a77b50dbe33e6f4a28297c864c05a799357270 Mon Sep 17 00:00:00 2001 From: justinsb Date: Thu, 28 Mar 2024 12:55:09 -0400 Subject: [PATCH] chore: specify updated version of stringer tool in go generate 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 --- porch/pkg/git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porch/pkg/git/git.go b/porch/pkg/git/git.go index 3842fa8d6..37857916e 100644 --- a/porch/pkg/git/git.go +++ b/porch/pkg/git/git.go @@ -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 (