Skip to content

Machine parsable output (JSON?) #104

Open

Description

@shughes-uk

One of our current issues with pip is that if you pip install <some packages> and one fails, its incredibly difficult to automatically determine what failed without getting into brittle regex parsing of the output.

I'd love for rip to feature something like a --json flag that would output issues in a way that can be trivially parsed. The mamba --json flag works well for us with conda packages.

Our use case is building python environments on a users behalf.

Activity

  1. baszalmstra commented on Dec 4, 2023

    @baszalmstra
    Contributor

    Hey @shughes-uk . Resolvo generates a complete problem graph. I think we would be able to serialize that to json. Is that something that would help? It looks something like this:

    Untitled

  2. notatallshaw commented on Dec 5, 2023

    @notatallshaw

    I don't know how much OP would find it useful, but I would certainly find it useful, especially if it outputed even if resolution failed for any reason.

  3. shughes-uk commented on Dec 5, 2023

    @shughes-uk
    Author

    Resolution failure output ala mamba would be helpful. I'd also want output from any source packages that fail to build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions