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

build: use mock wasmd for stable build #1255

Merged
merged 13 commits into from
Jul 13, 2022
Prev Previous commit
Next Next commit
add experimental script and build step
  • Loading branch information
ryanchristo committed Jul 12, 2022
commit 7a7420b25f47e508cac4628f7bb3b66607749234
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ endif
SDK_VERSION := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's:.* ::')
TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')

EXPERIMENTAL ?= false
LEDGER_ENABLED ?= true
DB_BACKEND ?= goleveldb

Expand Down Expand Up @@ -140,7 +141,8 @@ install: go.sum go-version
go install -mod=readonly $(BUILD_FLAGS) $(REGEN_DIR)

build: go.sum go-version
mkdir -p $(BUILD_DIR)
@mkdir -p $(BUILD_DIR)
@if $(EXPERIMENTAL) ; then ./scripts/experimental.sh; fi
go build -mod=readonly -o $(BUILD_DIR) $(BUILD_FLAGS) $(REGEN_DIR)

build-linux:
Expand Down
8 changes: 8 additions & 0 deletions scripts/experimental.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

search="replace github.com/CosmWasm/wasmd => ./mock/wasmd"
replace="// replace directive removed as a result of experimental.sh"

sed -i "s|$search|$replace|" go.mod

go mod tidy