purl-spec icon indicating copy to clipboard operation
purl-spec copied to clipboard

Using a non-default repository with cargo

Open ctron opened this issue 2 years ago • 2 comments

In the documentation is says:

  • The default repository is https://crates.io/

But what if one doesn't use the default repository (https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-other-registries)? Or what if one uses a git (or file) dependency using cargo (https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-git-repositories)?

ctron avatar Jan 09 '23 11:01 ctron

Would the repository_url qualifier satisfy this?

bureado avatar Jan 20 '23 15:01 bureado

I guess so.

ctron avatar Jan 23 '23 07:01 ctron

Hello @ctron . Thank you for opening this issue. If @bureado 's reply above addresses your question, please feel free to close this issue.

johnmhoran avatar Nov 19 '24 18:11 johnmhoran

Hello @ctron . Thank you for opening this issue. If @bureado 's reply above addresses your question, please feel free to close this issue.

Yes, I think it does, I wasn't aware that's actually a global thing. One can find this here: https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst#known-qualifiers-keyvalue-pairs

And thanks for pinging on this one. I lost track of it.

ctron avatar Nov 20 '24 07:11 ctron