-
Notifications
You must be signed in to change notification settings - Fork 7
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
failed to fetch https://github.com/rust-lang/crates.io-index
#2
Comments
Minter address is what I got from test1 wallet on localterra. |
Hey @taitruong. Might you be using a Windows computer? You can try the following thread to look for solutions. I have linked you to the answer which I thought may be most promising for you, but you may look through the others if it does not solve your problem. The post details an issue similar to what you are experiencing so I thought you could give it a try. |
Same error. I have created config file ~/.cargo/config.toml with:
Same error pops up as shown above. Interestingly this problem occurs when it tries to get serde package. Looking into .cargo folder I see the serde package has been downloaded:
As you can see I have updated serde version to 1.0.138 in Cargo.toml - but same error. My environment is as follows: OS: Ubuntu 20.03 |
Two things that I would try: Let's see if either of those have any affect. |
I've updated repo and now it works like a charm! |
I followed README and changed config.terrain.json:
Then when I deploy I get this:
$ terrain deploy cw721-metadata-onchain --signer test1
using pre-baked 'test1' wallet on localterra as signer
Updating crates.io index
Downloaded serde_derive v1.0.138
Downloaded serde v1.0.138
Downloaded 2 crates (131.1 KB) in 0.32s
Compiling proc-macro2 v1.0.40
Compiling quote v1.0.20
...
Finished release [optimized] target(s) in 27.30s
Info: RUSTC_WRAPPER=sccache
Info: sccache stats before build
Compile requests 0
Compile requests executed 0
Cache hits 0
Cache misses 0
Cache timeouts 0
Cache read errors 0
Forced recaches 0
Cache write errors 0
Compilation failures 0
Cache errors 0
Non-cacheable compilations 0
Non-cacheable calls 0
Non-compilation calls 0
Unsupported compiler calls 0
Average cache write 0.000 s
Average cache read miss 0.000 s
Average cache read hit 0.000 s
Failed distributed compilations 0
Cache location Local disk: "/root/.cache/sccache"
Cache size 0 bytes
Max cache size 10 GiB
Building contract in /code ...
Updating crates.io index
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Try again; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Try again; class=Net (12)
error: failed to get
serde
as a dependency of packagecw721-metadata-onchain v0.13.2 (/code)
Caused by:
failed to fetch
https://github.com/rust-lang/crates.io-index
Caused by:
network failure seems to have happened
if a proxy or similar is necessary
net.git-fetch-with-cli
may help herehttps://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
failed to resolve address for github.com: Try again; class=Net (12)
Error: Command failed: 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.5
The text was updated successfully, but these errors were encountered: