From e712e720cead08508f552fa267b3a6c880a243ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 12 Nov 2023 10:47:17 +0000 Subject: [PATCH] use x/tools version from go.mod in go:generate Otherwise we have to update that `@semver` string alongside the regular x/tools updates in go.mod. There's no reason to separate the two versions either. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d1c836d..16c7c33 100644 --- a/main.go +++ b/main.go @@ -1563,7 +1563,7 @@ func computePkgCache(fsCache *cache.Cache, lpkg *listedPackage, pkg *types.Packa // cmd/bundle will include a go:generate directive in its output by default. // Ours specifies a version and doesn't assume bundle is in $PATH, so drop it. -//go:generate go run golang.org/x/tools/cmd/bundle@v0.5.0 -o cmdgo_quoted.go -prefix cmdgoQuoted cmd/internal/quoted +//go:generate go run golang.org/x/tools/cmd/bundle -o cmdgo_quoted.go -prefix cmdgoQuoted cmd/internal/quoted //go:generate sed -i /go:generate/d cmdgo_quoted.go // computeLinkerVariableStrings iterates over the -ldflags arguments,