Replace PubGrub with Go binary for dependency resolution#798
Merged
Conversation
65f8bbe to
846fc12
Compare
Swap the resolution engine from PubGrub (Ruby SAT solver querying ecosyste.ms API) to a Go binary that runs real package managers. The Go binary (ecosyste-ms/resolve-cli) fetches a package's runtime deps from the ecosyste.ms API, creates a temp project, runs the actual package manager (npm, bundler, cargo, etc.) to resolve the full dependency tree, and returns JSON. Changes: - Job#resolve shells out to the `resolve` binary via Open3 - Add ecosystem and tree params (ecosystem as alternative to registry, tree=true for PURL tree output) - Filter registry listing to supported ecosystems only - Dockerfile: Debian-based with all major package managers installed - Add linux-gnu platforms to Gemfile.lock for Debian Docker builds
846fc12 to
a486631
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Swaps the resolution engine from PubGrub to a Go binary (ecosyste-ms/resolve-cli) that runs real package managers to resolve dependencies.
The binary fetches runtime deps from the ecosyste.ms API, creates a temp project, runs the actual package manager (npm, bundler, cargo, uv, etc.), and parses the output into a normalized dependency graph.
resolvebinary via Open3ecosystemparam as alternative toregistry(accepts purl types like gem, npm, cargo)tree=trueparam for PURL tree outputDepends on: