Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 73252aef18c7
Choose a base ref
...
head repository: NixOS/nix
compare: 97307811ee47
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Sep 21, 2017

  1. Improve error message for conflicting priorities

    I find the error message 'nix-env --set-flag priority NUMBER PKGNAME'
    not as helpful as it could be :
    - doesn't share the current priorities
    - doesn't say that the command must be run on the already installed
    PKGNAME (which is confusing the first time)
    - the doc needs careful reading:
    "If there are multiple derivations matching a name in args that have the same name (e.g., gcc-3.3.6 and gcc-4.1.1), then the derivation with the highest priority is used."
    if one stops reading there, he is screwed. Salvation comes with reading "A derivation can define a priority by declaring the meta.priority attribute. This attribute should be a number, with a higher value denoting a lower priority. The default priority is 0."
    To sum it up, lower number wins. I tried to convey this idea in the
    message too.
    teto committed Sep 21, 2017
    Copy the full SHA
    6920c23 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2017

  1. Merge pull request #1571 from teto/improve_priority_msg

    Improve error message for conflicting priorities
    edolstra committed Oct 12, 2017
    Copy the full SHA
    9730781 View commit details
    Browse the repository at this point in the history