From da2f3b3d03dd91fb45f9ea36b99becf504c50a54 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:23:48 +0200 Subject: [PATCH] fix: use buf build binary from the gobin path (backport #4242) (#4243) --- changelog.md | 1 + ignite/pkg/cosmosbuf/buf.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index c0e58d2ea0..23f22f9161 100644 --- a/changelog.md +++ b/changelog.md @@ -31,6 +31,7 @@ - [#4199](https://github.com/ignite/cli/pull/4199) Set and seal SDK global config in `app/config.go` - [#4212](https://github.com/ignite/cli/pull/4212) Set default values for extension flag to dont crash ignite - [#4216](https://github.com/ignite/cli/pull/4216) Avoid create duplicated scopedKeppers +- [#4242](https://github.com/ignite/cli/pull/4242) Use buf build binary from the gobin path ## [`v28.4.0`](https://github.com/ignite/cli/releases/tag/v28.4.0) diff --git a/ignite/pkg/cosmosbuf/buf.go b/ignite/pkg/cosmosbuf/buf.go index 2ccc1c5737..dec67c6e8f 100644 --- a/ignite/pkg/cosmosbuf/buf.go +++ b/ignite/pkg/cosmosbuf/buf.go @@ -12,6 +12,7 @@ import ( "github.com/ignite/cli/v28/ignite/pkg/cmdrunner/exec" "github.com/ignite/cli/v28/ignite/pkg/cosmosver" "github.com/ignite/cli/v28/ignite/pkg/errors" + "github.com/ignite/cli/v28/ignite/pkg/goenv" "github.com/ignite/cli/v28/ignite/pkg/protoanalysis" "github.com/ignite/cli/v28/ignite/pkg/xexec" "github.com/ignite/cli/v28/ignite/pkg/xos" @@ -60,7 +61,7 @@ var ( // New creates a new Buf based on the installed binary. func New() (Buf, error) { - path, err := xexec.ResolveAbsPath(binaryName) + path, err := xexec.ResolveAbsPath(filepath.Join(goenv.Bin(), binaryName)) if err != nil { return Buf{}, err }