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

chore: run cargo update across osmosis #8683

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

faddat
Copy link
Member

@faddat faddat commented Sep 8, 2024

What is the purpose of the change

Run cargo update across all of the Rust code in Osmosis.

  • it's a good thing to do, I think
  • learn how CI is working for rust

Testing and Verifying

This change is already covered by existing tests, and should be closed if it doesn't pass tests, or doesn't make sense to the maintainers.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Changelog entry added to Unreleased section of CHANGELOG.md? yes, shortly

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@faddat faddat added the V:state/breaking State machine breaking PR label Sep 8, 2024
@faddat
Copy link
Member Author

faddat commented Sep 8, 2024

Is this.... purposeful?

Thanks!

@@ -74,7 +74,7 @@ jobs:
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.10
cosmwasm/workspace-optimizer:0.16.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a feeling this will fail for some of the contracts in /cosmwasm. I tried updating this here and it failed, trying it locally also failed.

Updating the other contracts (in some fashion) may require a separate PR to make this work.

@@ -31,27 +34,27 @@ imported = []
optimize = """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/rust-optimizer:0.12.11
cosmwasm/rust-optimizer:0.16.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We can probably swap these to just use cosmwasm/optimizer:0.16.0 instead of rust/workspace-optimizer as in the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants