sonatype-nexus-community / oysteR

Create purls from the filtered sands of your dependencies, powered by OSS Index
https://sonatype-nexus-community.github.io/oysteR/
Apache License 2.0
40 stars 9 forks source link

[FEATURE] Export generate_purls or generate_purl #53

Closed DarthHater closed 3 years ago

DarthHater commented 3 years ago

You can potentially get listed here as a known implementation:

https://github.com/package-url/purl-spec#known-implementations

It would give people writing R a library to use to construct a purl from known coordinates.

cc @bhamail / @DarthHater / @brittanybelle / @adrianpowell / @csgillespie

JosiahParry commented 3 years ago

Exporting it is a rather easy feat. I think we can do that. But prior to that i think it would make sense to get some validation functions in there. I'm not sure if it is worth spinning off into its own package, though. @csgillespie, thoughts on that? I suppose it would make sense to extend to bioC. I'm not sure of any other major R package repository besides those two.

csgillespie commented 3 years ago

I think this is handled via the audit() function. You can pass arbitraryy pkgs, versions and types.

https://github.com/sonatype-nexus-community/oysteR/blob/master/R/audit.R#L35