lix/src
Matthieu Coudron 6920c23701 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.
2017-09-21 10:25:20 +09:00
..
boost Shut up some warnings 2017-04-14 14:42:20 +02:00
build-remote Merge branch 'macOS' of https://github.com/davidak/nix 2017-07-31 10:31:51 +02:00
buildenv Improve error message for conflicting priorities 2017-09-21 10:25:20 +09:00
libexpr Add builtins.string function. 2017-08-15 20:04:11 +00:00
libmain Fix verbosity level for nix build --dry-run 2017-09-01 12:37:09 +02:00
libstore Don't remove Content-Encoding in fetchurl / nix-prefetch-url 2017-09-18 11:07:28 +02:00
libutil RemoteStore: Add option to drop old connections from the pool 2017-09-14 18:10:38 +02:00
linenoise Replace readline by linenoise 2017-05-10 18:37:42 +02:00
nix Add "nix add-to-store" command 2017-09-14 13:29:33 +02:00
nix-build nix-shell: Ignore readFile() errors 2017-09-18 13:28:00 +02:00
nix-channel Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-copy-closure Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-daemon Give activities a verbosity level again 2017-08-28 19:13:24 +02:00
nix-env Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-instantiate Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-prefetch-url Don't remove Content-Encoding in fetchurl / nix-prefetch-url 2017-09-18 11:07:28 +02:00
nix-store LegacySSHStore: Include signatures etc. 2017-09-08 16:55:27 +02:00
resolve-system-dependencies Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00