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

Avoid using Pkg internals #15

Closed
ericphanson opened this issue Aug 18, 2023 · 2 comments · Fixed by #26
Closed

Avoid using Pkg internals #15

ericphanson opened this issue Aug 18, 2023 · 2 comments · Fixed by #26

Comments

@ericphanson
Copy link

functions like

function resolve_pkgsource!(package::SpdxPackageV2, packagedata::Pkg.API.PackageInfo, registrydata::Union{Nothing, Missing, PackageRegistryInfo})
are using Pkg internals, which have changed in the past.

One tool that can help is https://github.com/GunnarFarneback/RegistryInstances.jl which provides a public API for the RegistryInstances portion of what Pkg does. (See the Background section of the README there).

@SamuraiAku
Copy link
Owner

This package has no releases yet, but this is the functionality I am looking for. I’ll keep an eye on this. Thanks for the tip.

@ericphanson
Copy link
Author

RegistryInstances actually does have a registered release in General: https://github.com/JuliaRegistries/General/blob/master/R/RegistryInstances/Package.toml. It doesn't have TagBot setup (fyi @GunnarFarneback), which is why nothing shows up as a github release. (I know since I'm using it in PackageAnalyzer.jl).

SamuraiAku added a commit that referenced this issue Dec 9, 2023
SamuraiAku added a commit that referenced this issue Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants