From cbda3eaac1f4f648debefd8349f6b5821ca976bb Mon Sep 17 00:00:00 2001 From: Sven Walter Date: Wed, 7 Feb 2024 16:27:21 +0100 Subject: [PATCH] make buildutil compatible with 'go work' --- cmd/buildutil/info.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/buildutil/info.go b/cmd/buildutil/info.go index afc2585..5e16f07 100644 --- a/cmd/buildutil/info.go +++ b/cmd/buildutil/info.go @@ -223,8 +223,8 @@ func CollectBuildInformation(ctx context.Context, p BuildParameters) (BuildInfo, e := NewChainExecutor(ctx) info.BuildDate = time.Now().Format(time.RFC3339) - info.Go.Module = e.OutputString(p.GoCommand, "list", "-m", "-mod=mod") - info.Go.Dir = e.OutputString(p.GoCommand, "list", "-m", "-mod=mod", "-f", "{{.Dir}}") + info.Go.Module = e.OutputString(p.GoCommand, "list") + info.Go.Dir = e.OutputString(p.GoCommand, "list", "-f", "{{.Dir}}") info.System.OS = e.OutputString(p.GoCommand, "env", "GOOS") info.System.Arch = e.OutputString(p.GoCommand, "env", "GOARCH") info.System.Ext = e.OutputString(p.GoCommand, "env", "GOEXE")