-
Notifications
You must be signed in to change notification settings - Fork 50
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
[BUG] "error: failed to download uint v0.9.3
" when execute with docker run .... command
#38
Labels
bug
Something isn't working
Comments
haxpor
changed the title
[BUG] title_of_bug
[BUG] "error: failed to download Apr 10, 2022
uint v0.9.3
" when execute with docker run .... command
Can you try to with following command? 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 |
Hey thanks, I then got the following.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm trying to verify deployed smart contract against git's commit hash in order to see which revision in git that is actually deployed on chain. But I'm stuck at the execution of
docker
command (as seen inREADME.md
file i.e.docker run --rm -v ....
).It shows the following error (please excuse that I use
sudo
as my user is not added as part of docker group)To Reproduce
git clone [email protected]:Anchor-Protocol/anchor-token-contracts.git
(specifically I'm at the tip at the time of cloning which isb99f561
)cd anchor-token-contracts
rust up default stable
(i'm using rust 1.60.0 for bothcargo 1.60.0 (d1fd9fe 2022-03-01)
, andrustc 1.60.0 (7737e0b5c 2022-04-04)
)rustup target add wasm32-unknown-unknown
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.11.5
Context & versions
Anchor-Protocol/anchor-token-contracts
-> atb99f561
.Docker version 20.10.14, build a224086
(if applicable) suggested solution
I didn't think about solution yet. But I work around by executing steps involved (compile, optimize, and get checksum for each contract file) manually by looking at
cosmwasm/rust-optimizer
'sDockfile
andoptimize.sh
to see what commands it uses, then I do it manually to achieve my goal of verify the contract code.So yeah, at last I would like to know if I did something wrong in order to be able to use
docker run --rm -v ...
command to ease in generating checksums for all contracts.The text was updated successfully, but these errors were encountered: