Skip to content

Commit

Permalink
fix: use buf build binary from the gobin path (backport #4242) (#4243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Jul 4, 2024
1 parent ef44b5a commit da2f3b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion ignite/pkg/cosmosbuf/buf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit da2f3b3

Please sign in to comment.