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

Unable to run workspace-optimizer #828

Closed
ghost opened this issue Oct 13, 2022 · 3 comments
Closed

Unable to run workspace-optimizer #828

ghost opened this issue Oct 13, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2022

Fresh Ubuntu machine on Hetzner with Rust and git.

root@juno:~/cw-plus# docker run --rm -v "$(pwd)":/code   --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target   --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry   cosmwasm/workspace-optimizer:0.12.6
1.60.0-x86_64-unknown-linux-musl (default)
cargo 1.60.0 (d1fd9fe2c 2022-03-01)
Building artifacts in workspace ...
Found workspace member entries: ["packages/*", "contracts/*"]
Package directories: ["contracts/cw1-subkeys", "contracts/cw1-whitelist", "contracts/cw1-whitelist-ng", "contracts/cw1155-base", "contracts/cw20-base", "contracts/cw20-ics20", "contracts/cw3-fixed-multisig", "contracts/cw3-flex-multisig", "contracts/cw4-group", "contracts/cw4-stake", "packages/controllers", "packages/cw1", "packages/cw1155", "packages/cw2", "packages/cw20", "packages/cw3", "packages/cw4", "packages/multi-test", "packages/storage-macro", "packages/storage-plus", "packages/utils"]
Contracts to be built: ["contracts/cw1-subkeys", "contracts/cw1-whitelist", "contracts/cw1-whitelist-ng", "contracts/cw1155-base", "contracts/cw20-base", "contracts/cw20-ics20", "contracts/cw3-fixed-multisig", "contracts/cw3-flex-multisig", "contracts/cw4-group", "contracts/cw4-stake"]
Building "contracts/cw1-subkeys" ...
   Compiling cw1-subkeys v0.15.0 (/code/contracts/cw1-subkeys)
error[E0599]: no variant or associated item named `response_schemas` found for enum `cw1_subkeys::msg::QueryMsg` in the current scope
  --> contracts/cw1-subkeys/src/bin/schema.rs:8:5
   |
8  | /     write_api! {
9  | |         instantiate: InstantiateMsg,
10 | |         execute: ExecuteMsg,
11 | |         query: QueryMsg,
12 | |     }
   | |_____^ variant or associated item not found in `cw1_subkeys::msg::QueryMsg<_>`
   |
   = note: this error originates in the macro `write_api` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0599`.
error: could not compile `cw1-subkeys` due to previous error
thread 'main' panicked at 'assertion failed: error_code.success()', src/main.rs:77:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
root@juno:~/cw-plus#
@ueco-jb
Copy link
Member

ueco-jb commented Oct 13, 2022

Before posting an issue, make sure you are using latest version of packages.
Use 0.12.8.

@ueco-jb ueco-jb closed this as completed Oct 13, 2022
@ghost
Copy link
Author

ghost commented Oct 13, 2022

This doesn’t seem correct.

I need to run the version of the workspace-optimizer that was used to create a release at a specific commit.

For contract releases 0.15.1 and 0.15.0 I assumed that was 0.12.6 as per the readme.

Was 0.12.8 used to generate the checksum files for the last few releases?

@uint
Copy link
Contributor

uint commented Oct 13, 2022

Was 0.12.8 used to generate the checksum files for the last few releases?

Yes, it was. We forgot to update the README. Our bad!

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

2 participants