Skip to content

nix-env -e silently ignores errors #3531

@rkoe

Description

@rkoe

Problem

If an invalid package name is given to nix-env -i or nix-env -u, an error-message is printed and nix-env exits with an exit-code !=0.

But nix-env -e silently ignores invalid package names, and always exits with exit-code 0.
But silently ignoring errors is a bad idea.

Solution

  • Print an error-message for each invalid/not installed package, given to nix-env -e.
  • Exit with exit code != 0, if there was any error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions