Git Product home page Git Product logo

Comments (4)

jak-pan avatar jak-pan commented on July 27, 2024 1

Got to the root of the problem. Everything broke when I introduced generic-asset-pallet again. The problem was that I took the code out of older repo and changed it to beta.7 so my cargo.lock was good but my Cargo.toml had version

[dependencies.generic-asset]
git = 'https://github.com/paritytech/substrate.git'
default-features = false
package = 'pallet-generic-asset'
version = '2.0.0-alpha.7'

instead of tag

[dependencies.generic-asset]
git = 'https://github.com/paritytech/substrate.git'
default-features = false
package = 'pallet-generic-asset'
tag = ‘v2.0.0-alpha.7'

that broke the Cargo and it threw error at completely different package.

from substrate-node-template.

jak-pan avatar jak-pan commented on July 27, 2024

It looks like it's a Cargo error. I've removed cached substrate repo from ~/.cargo/git/checkouts did cargo clean reverted Cargo.toml and cargo.lock back 1.0.5 and this is the error I get RN.

The repo is being downloaded into ~/.cargo/git/checkouts/... and there's a proper version of the file.

[K@JPMBP2 substrate-node-template]$ (master)* cargo build --release
error: failed to download `substrate-wasm-builder-runner v1.0.5 (https://github.com/paritytech/substrate.git#a2512e83)`

Caused by:
  unable to get packages from source

Caused by:
  failed to find substrate-wasm-builder-runner v1.0.5 (https://github.com/paritytech/substrate.git#a2512e83) in path source
note: this is an unexpected cargo internal error
note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
note: cargo 1.45.0-nightly (cb06cb269 2020-05-08)```

from substrate-node-template.

jak-pan avatar jak-pan commented on July 27, 2024

it looks like it's related to this. rust-lang/cargo#8120
and this rust-lang/cargo#4007

but I can't seem to get it working by removing registry as suggested.

from substrate-node-template.

jak-pan avatar jak-pan commented on July 27, 2024

It works after re-downloading the whole repo, updating rust and clearing everything... I don't know if it was my bad however or if it was really a bug. Closing.

from substrate-node-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.