gobitfly/eth2-beaconchain-explorer

build failed: "swag: command not found"

Closed this issue · 1 comments

Describe the bug
build failed on macOS 14.1

To Reproduce
make all

Expected behavior
build succeeds

Screenshots
❯ go version
go version go1.21.5 darwin/amd64
❯ make all
rm -rf bin/
mkdir -p bin/
go run cmd/bundle/main.go
go install github.com/swaggo/swag/cmd/swag@v1.8.3 && swag init --exclude bin,_gitignore,.vscode,.idea --parseDepth 1 -g ./handlers/api.go
/bin/sh: swag: command not found
make: *** [explorer] Error 127

Desktop (please complete the following information):

  • OS: macOS x86
  • Version 14.1

Solved. For anyone who had the same issue.

export PATH=$(go env GOPATH)/bin:$PATH