From cfea8dd56cc65101086ca8d7c892be16d85dd389 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Thu, 4 Jul 2024 16:04:59 +0200 Subject: [PATCH] use buf build from the gobin path (#4242) --- ignite/pkg/cosmosbuf/buf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ignite/pkg/cosmosbuf/buf.go b/ignite/pkg/cosmosbuf/buf.go index 9cc0ed0195..9af7b48007 100644 --- a/ignite/pkg/cosmosbuf/buf.go +++ b/ignite/pkg/cosmosbuf/buf.go @@ -12,6 +12,7 @@ import ( "github.com/ignite/cli/v29/ignite/pkg/cmdrunner/exec" "github.com/ignite/cli/v29/ignite/pkg/dircache" "github.com/ignite/cli/v29/ignite/pkg/errors" + "github.com/ignite/cli/v29/ignite/pkg/goenv" "github.com/ignite/cli/v29/ignite/pkg/xexec" "github.com/ignite/cli/v29/ignite/pkg/xos" ) @@ -123,7 +124,7 @@ func FileByFile() GenOption { // New creates a new Buf based on the installed binary. func New(cacheStorage cache.Storage, goModPath string) (Buf, error) { - path, err := xexec.ResolveAbsPath(binaryName) + path, err := xexec.ResolveAbsPath(filepath.Join(goenv.Bin(), binaryName)) if err != nil { return Buf{}, err }