substrate-docs icon indicating copy to clipboard operation
substrate-docs copied to clipboard

Explain github dependancies and best practices

Open nuke-web3 opened this issue 4 years ago • 1 comments

We need a dedicated place on devhub outlining how to navigate "dependency hell" in Substrate, as versioning is the primary issue for most if you are not careful.

  • Reminder of how to specify properly in cargo.toml (git, tag, rev, branch, etc.) and not to manually update Cargo.lock. But scan the lockfile for multiple versions of the same deps (need to fix this with cargo update after setting version & deps repo correctly)
  • How to set upstream deps for substrate to match a 3rd party pallet's (or better, the opposite)
  • How to identify version issues and resolve them with https://doc.rust-lang.org/cargo/commands/cargo-update.html#examples cargo update -p foo --precise 1.2.3
  • {more?}

nuke-web3 avatar Aug 10 '21 21:08 nuke-web3