Open
Description
Problem
Downstream report: nabijaczleweli/cargo-update#293 (comment)
Steps
- cargo install --git https://github.com/simonrupf/convert2json.git#65d1408a46668787ba34bf10134ac767c5035710
- grep convert2json ~/.cargo/crates.toml
"convert2json 1.1.6 (git+https://github.com/simonrupf/convert2json.git#65d1408a46668787ba34bf10134ac767c5035710#74a150d03308dee5a084469ca57623e62560b60b)" = [
Possible Solution(s)
Either parse the "anchor" as the rev or don't discard it, since cloning a URL like this is actually illegal
$ git clone https://github.com/simonrupf/convert2json.git#65d1408a46668787ba34bf10134ac767c5035710
Cloning into 'convert2json.git#65d1408a46668787ba34bf10134ac767c5035710'...
fatal: unable to update url base from redirection:
asked for: https://github.com/simonrupf/convert2json.git#65d1408a46668787ba34bf10134ac767c5035710/info/refs?service=git-upload-pack
redirect: https://github.com/simonrupf/convert2json
Notes
No response
Version
cargo 1.85.1 (d73d2caf9 2024-12-31) I think, the original reporter didn't say.