Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orai build error on a fresh profile #26

Open
m8nky opened this issue Nov 7, 2024 · 0 comments
Open

Orai build error on a fresh profile #26

m8nky opened this issue Nov 7, 2024 · 0 comments

Comments

@m8nky
Copy link

m8nky commented Nov 7, 2024

Context

Try to build oraid on a fresh go env, results in a build error in final step.

To Reproduce

Steps to reproduce the behavior:

  1. Upgrade go to 1.22
  2. Delete ~/go
  3. Follow 0.50.0 upgrade guide:
git clone https://github.com/oraichain/wasmd
cd wasmd
git checkout v0.50.0
# NOTE: you may need to upgrade your Golang version to 1.22.6+ with GOTOOLCHAIN to build the binary
make build
mv: cannot move 'build/oraid' to '/var/lib/orai/go/bin/oraid': No such file or directory
make: *** [Makefile:86: build] Error 1

Expected behavior

No build error

Additional context

wasmd/Makefile

Line 86 in a71fabc

go build -mod=readonly $(BUILD_FLAGS) -o build/oraid ./cmd/wasmd && mv build/oraid $(GOPATH)/bin/oraid

Maybe like this:

go build -mod=readonly $(BUILD_FLAGS) -o build/oraid ./cmd/wasmd && mkdir -p $(GOPATH)/bin && mv build/oraid $(GOPATH)/bin/oraid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant