Repository navigation
feat(parsers): add Nix, Guix and Spack parsers (Phase 2.1) - #105
Merged
Merged
Conversation
Co-Authored-By: dominicusin <dominicusin@yahoo.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Documentation build overview
|
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.
Summary
Adds the three high-priority managers from
PROJECT_PLAN.md§2.1. Registry grows from 22 to 25.NixParser: handlesnix-env -q(hello-2.12.1),nix profile listin both the newName:/Store paths:format and the legacy one-line format, andnix profile list --json(elementsas a dict or a list). Name/version are split the way Nixbuiltins.parseDrvNamedoes it: the version starts at the first-followed by a non-letter, sopython3.11-numpy-1.26.4→ (python3.11-numpy,1.26.4).GuixParser: handlesguix package --list-installed/--list-available(tab columns). Rows with a/gnu/store/path get statusinstalled; all other rows getcandidate.SpackParser: handlesspack findtext output, including the-lhash prefix,-vvariants,@=versions, and skips--/==>lines and%compilertokens. Also handlesspack find --json, fillingdependsfromdependencies(list or dict form)._PARSER_SPECS/_PUBLIC_PARSER_NAMESand inPackageManagerType. Updated the CLI--managerhelp, README and PROJECT_PLAN §2.1.tests/test_parsers_nix_guix_spack.py, plus a check thatPackageManagerTypeandPARSER_REGISTRYcontain the same names.Note: on Python 3.12,
TestPulPSolverAvailable::test_pulp_available_true_when_importedfails onmaintoo. CI installs PuLP 4.0, which removedLpStatus. #103 fixes this.Checks
Link to Devin session: https://app.devin.ai/sessions/7a195999dfd146d48fbc98f4bab6707a
Open in Devin Desktop: https://app.devin.ai/desktop/session/7a195999dfd146d48fbc98f4bab6707a?variant=devin
Requested by: @dominicusin