-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add cargo stylus version to the name of created docker image #88
Comments
Hi, @rauljordan I don't think #82 closed this issue. The problem was related to the fact that cargo stylus version was not used in the generated docker image name, and it still does not. Actually, with
|
hi @rimrakhimov thanks - I was able to reproduce. The issue was in the Rust code that detected the correct image was there. That code was not updated to support the correct version in name + toolchain, and we have fixed in #91 if you wish to try it out by removing cargo-stylus and doing |
Currently created docker image name includes only the version of the rust toolchain and does not include the version of the cargo stylus package (
CARGO_PKG_VERSION
) - https://github.com/OffchainLabs/cargo-stylus/blob/main/check/src/docker.rs#L44-L47That may result in the following scenario when next versions of the cargo stylus are released:
cargo stylus 0.4.2
with rust-toolchain 1.80.0, deployed some contracts via that setup and hascargo-stylus-1.80.0
image installed locally.v0.5.0
version. The code then just checks ifcargo-stylus-1.80.0
image exists locally (https://github.com/OffchainLabs/cargo-stylus/blob/main/check/src/docker.rs#L45) and as it already does, it uses that image that internally hascargo stylus 0.4.2
installed.Solution
I suggest to add a current cargo stylus version in the docker image name as well - e.g.
cargo-stylus-0.4.2-1.80.0
The text was updated successfully, but these errors were encountered: