Skip to content

"nix-env --set-flag priority NUMBER PKGNAME" should error out if unable to perform action #184

Closed

Description

@bjornfor

nix-env --set-flag priority NUMBER PKGNAME silently ignores non-matching or not installed PKGNAMEs. This is confusing.

A friendlier behaviour would be to print an error and set the exit code to != 0 if PKGNAME is not installed or does not match any known package.

Activity

  1. added 2 commits that reference this issue on Jan 1, 2024
  2. added a commit that references this issue on Sep 4, 2025
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions