Open kristof-mattei opened 1 week ago
Thanks for reporting!
Adding a strip here would fix it
I don't have time to create a PR now though I do have time to review one, so if you are willing to open one, I can review and cut a new release to fix this!
Thanks for reporting!
Adding a strip here would fix it
I don't have time to create a PR now though I do have time to review one, so if you are willing to open one, I can review and cut a new release to fix this!
Roger, I'll make one tomorrow.
Hi @NobodyXu I've added 2 PRs: #1803 & #1804. I prefer #1803, as that function really goes though the GitHub API and normalizes the string as per GitHub's expectations, whereas #1804 doesn't, it just patches what our understanding of the specs are.
But #1803 is hard to test, as the test requires internet connection.
Would love to hear your feedback.
Example:
https://crates.io/crates/cargo-spellcheck
Repository is set to https://github.com/drahnr/cargo-spellcheck.git
While GitHub itself redirects to the non-.git version, the GH Rest and Graph API do not normalize a repo that is ending in .git to the non-.git ending version.
This causes mismatches which make cargo-binstall unable to find the downloads, and resort to fetching source + compile.
Fails:
However when we hardcode the URL it works: