Skip to content

Commit

Permalink
use buf build from the gobin path (#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored Jul 4, 2024
1 parent b8fe6f0 commit cfea8dd
Showing 1 changed file with 2 additions and 1 deletion.
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/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"
)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit cfea8dd

Please sign in to comment.