We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is important to have these two binaries, but it seems heavy to require to copy all code to do so.
Since the only difference is one configuration option, which is []string{}, we could pass this in from the cli on the build step.
[]string{}
Update https://github.com/CosmWasm/wasmd/blob/master/cmd/wasmd/main.go
var EnabledProposals = "" func getEnabledProposals() []string { if len(EnabledProposals) == 0 { return []string{} } return strings.Split(EnabledProposals, ",") }
Then we set a linker flag in the Makefile, like
-X github.com/CosmWasm/wasmd/cmd/wasmd.EnabledProposals=StoreCode,InstantiateContract
And build two different binaries from the same cmd/wasmd directory, just using a different build flag
cmd/wasmd
The text was updated successfully, but these errors were encountered:
update Gaia with to latest SDK master (CosmWasm#210)
7c5bd87
* update Gaia with sim refactor * fix tests * update to latest master
Successfully merging a pull request may close this issue.
Summary
It is important to have these two binaries, but it seems heavy to require to copy all code to do so.
Problem Definition
Since the only difference is one configuration option, which is
[]string{}
, we could pass this in from the cli on the build step.Proposal
Update https://github.com/CosmWasm/wasmd/blob/master/cmd/wasmd/main.go
Then we set a linker flag in the Makefile, like
-X github.com/CosmWasm/wasmd/cmd/wasmd.EnabledProposals=StoreCode,InstantiateContract
And build two different binaries from the same
cmd/wasmd
directory, just using a different build flagFor Admin Use
The text was updated successfully, but these errors were encountered: