1

I am learning "substrate" now and I set dependence according to the tutorial as below:

[dependencies]
pallet-node-authorization = { default-features = false, version = "4.0.0-dev", git = "https://github.com/paritytech/polkadot-sdk.git", branch = "polkadot-v1.0.0" }

Then I run the command "cargo check -p node-template-runtime --release", and got below error:

"Caused by:
  failed to load source for dependency `pallet-node-authorization`

Caused by:
  Unable to update https://github.com/paritytech/polkadot-sdk.git?branch=polkadot-v1.0.0

Caused by:
  failed to find branch `polkadot-v1.0.0`

Caused by:
  cannot locate remote-tracking branch 'origin/polkadot-v1.0.0'; class=Reference (4); code=NotFound (-3)"

so what is the matter?

1
  • I have the same problem as you, how did you solve it?
    – dev99
    Commented Nov 15, 2023 at 11:48

2 Answers 2

0

instead of git = "https://github.com/paritytech/polkadot-sdk.git" use git = "https://github.com/paritytech/substrate.git"

They put the wrong url in the tutorial

1
  • this is work 4 me^ big thanks
    – Gybernaty
    Commented Jan 2 at 6:18
1
Caused by:
  failed to find branch `polkadot-v1.0.0`

Please use branch = "release-polkadot-v1.0.0" instead. Make sure to check the new naming rules once you switch to the monorepo.

3
  • thank you, but it still failed after use branch = "release-polkadot-v1.0.0"; error: failed to get pallet-node-authorization as a dependency of package node-template-runtime v4.0.0-dev (/home/sw/substrate-node-template/runtime) Caused by: failed to load source for dependency pallet-node-authorization Caused by: Unable to update github.com/paritytech/… Caused by: failed to clone into: /home/sw/.cargo/git/db/polkadot-sdk-cff69157b985ed76 Caused by: SSL error: syscall failure: ; class=Os (2)
    – Henry
    Commented Nov 1, 2023 at 13:44
  • Just check your network or maybe use a VPN if you are in China :)
    – AurevoirXavier
    Commented Nov 1, 2023 at 14:23
  • yes, I use a vpn; it can't be done by vpn?
    – Henry
    Commented Nov 1, 2023 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.