Skip to content
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

CI fails to fetch patches #112

Closed
mattsse opened this issue Jun 14, 2021 · 7 comments · Fixed by #114
Closed

CI fails to fetch patches #112

mattsse opened this issue Jun 14, 2021 · 7 comments · Fixed by #114
Assignees
Labels
needs triage Issue needs to be triaged

Comments

@mattsse
Copy link
Contributor

mattsse commented Jun 14, 2021

Issue summary

Other information and links

@mattsse mattsse added the needs triage Issue needs to be triaged label Jun 14, 2021
@clearloop
Copy link
Contributor

clearloop commented Jun 14, 2021

Actually, we don't have to patch resources in Cargo.toml, we can just modify the commit hashes in Cargo.lock and it has the same result since we are just patching substrate like repos

The patches are horrible

@mattsse
Copy link
Contributor Author

mattsse commented Jun 14, 2021

Yeah, that's what the patch section does, and you're not supposed to touch the lock file -.-
If we'd manage to get patches to work in the CI, it will make it so much easier to upgrade stuff, because we now have to integrate 5 repos that depend on each other, not necessarily on the same branch/state

  • cumulus (requires substrate, polkadot, grandpa)
  • polkadot (requires substrate, grandpa)
  • substrate
  • chainlink (requires substrate)

@clearloop
Copy link
Contributor

-.- (QAQ)

@clearloop
Copy link
Contributor

The double slash works on my machine with cargo 1.52.0-nightly

@mattsse
Copy link
Contributor Author

mattsse commented Jun 14, 2021

Same here, my guess is that this is due:

failed to authenticate when downloading repository: ssh://[email protected]/paritytech//grandpa-bridge-gadget

mb related rust-lang/cargo#3900 rust-lang/cargo#1851
https://doc.rust-lang.org/cargo/appendix/git-authentication.html

@clearloop
Copy link
Contributor

The weird thing is docker works fine

@clearloop
Copy link
Contributor

Use git CLi solves

Caused by:
  failed to authenticate when downloading repository: ssh://[email protected]/paritytech//cumulus

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

But new error

  fatal: remote error: 
    paritytech//polkadot is not a valid repository name
    Visit https://support.github.com/ for help

Maybe we can do a trick replacing the URI while git fetching the repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants