Maximilian Bosch
e878fc4aac
lib/modules: better error message if an attr-set of options is expected
...
I recently wrote some Nix code where I wrongly set a value to an option
which wasn't an actual option, but an attr-set of options. The mistake I
made can be demonstrated with an expression like this:
{
foo = { lib, pkgs, config, ... }: with lib; {
options.foo.bar.baz = mkOption {
type = types.str;
};
config.foo.bar = 23;
};
}
While it wasn't too hard to find the cause of the mistake for me, it was
necessary to have some practice in reading stack traces from the module
system since the eval-error I got was not very helpful:
error: --- TypeError --------------------------------------------------------- nix-build
at: (323:25) in file: /nix/store/3nm31brdz95pj8gch5gms6xwqh0xx55c-source/lib/modules.nix
322| foldl' (acc: module:
323| acc // (mapAttrs (n: v:
| ^
324| (acc.${n} or []) ++ f module v
value is an integer while a set was expected
(use '--show-trace' to show detailed location information)
I figured that such an error can be fairly confusing for someone who's
new to NixOS, so I decided to catch this case in th `byName` function in
`lib/modules.nix` by checking if the value to map through is an actual
attr-set. If not, a different error will be thrown.
2021-03-11 14:55:56 +01:00
Eric Bailey
2dbf082e8d
helm-secrets: 3.4.1 -> 3.5.0
2021-03-11 00:47:54 +01:00
Robert T. McGibbon
0741cb4ffd
fst: init at 0.4.5 ( #115214 )
2021-03-11 00:43:57 +01:00
R. RyanTM
eb613237ed
python37Packages.azure-mgmt-iotcentral: 4.0.0 -> 4.1.0
2021-03-10 15:26:21 -08:00
R. RyanTM
5f1ab8c5b1
python37Packages.Wand: 0.6.5 -> 0.6.6
2021-03-10 15:23:53 -08:00
R. RyanTM
bebad50c94
python37Packages.hdmedians: 0.14.1 -> 0.14.2
2021-03-10 15:23:35 -08:00
Sandro
bcf1cb0712
Merge pull request #115057 from danieldk/wrangler-system-openssl
...
wrangler: build against system OpenSSL
2021-03-11 00:19:39 +01:00
Sandro
5691cf42cc
Merge pull request #115776 from NeQuissimus/awscli
2021-03-10 23:47:43 +01:00
Sandro
d66647115a
Merge pull request #115766 from marsam/update-ncspot
...
ncspot: 0.4.0 -> 0.5.0
2021-03-10 23:44:23 +01:00
Sandro
89a7d1afe9
Merge pull request #115764 from marsam/update-rbw
...
rbw: 1.0.0 -> 1.1.2
2021-03-10 23:43:56 +01:00
Karl H
aa202f1c94
octave.pkgs.sparsersb: remove librsb null override, unbreak ( #115838 )
2021-03-10 23:28:10 +01:00
Sandro
04bdbabcbc
Merge pull request #115835 from rhoriguchi/vscode-extensions.hashicorp.terraform
...
vscode-extensions.hashicorp.terraform: 2.8.0 -> 2.8.1
2021-03-10 23:24:24 +01:00
R. RyanTM
28ea5a7f52
postgresql11Packages.repmgr: 5.1.0 -> 5.2.1 ( #115554 )
2021-03-10 22:19:14 +00:00
markuskowa
dd201ce4bb
Merge pull request #115649 from markuskowa/upd-openmpi
...
openmpi: 4.0.5 -> 4.1.0
2021-03-10 23:08:56 +01:00
Ryan Horiguchi
cc71e41104
vscode-extensions.hashicorp.terraform: 2.8.0 -> 2.8.1
2021-03-10 22:16:21 +01:00
Maximilian Bosch
7de94ba177
Merge pull request #115808 from r-ryantm/auto-update/cargo-make
...
cargo-make: 0.32.12 -> 0.32.14
2021-03-10 22:15:05 +01:00
Sandro
52962f598c
Merge pull request #115460 from austinbutler/pre-commit-2-11-0
...
pre-commit: 2.7.1 -> 2.11.0
2021-03-10 21:52:00 +01:00
Sandro
5cd998ae58
Merge pull request #115816 from Synthetica9/plexamp-3.4.2
2021-03-10 21:50:18 +01:00
Sandro
9d175157e0
Merge pull request #115412 from andresilva/sidequest-0.10.19
...
sidequest: 0.10.11 -> 0.10.19
2021-03-10 21:28:07 +01:00
Sarah Brofeldt
58279ef1f0
Merge pull request #115616 from r-ryantm/auto-update/squid
...
squid: 4.13 -> 4.14
2021-03-10 21:16:38 +01:00
Sarah Brofeldt
bba7d46eeb
Merge pull request #115543 from r-ryantm/auto-update/remmina
...
remmina: 1.4.10 -> 1.4.12
2021-03-10 21:16:10 +01:00
R. RyanTM
6aadfc9d5d
python38Packages.ase: 3.20.1 -> 3.21.1
2021-03-10 12:14:00 -08:00
R. RyanTM
d966e001ad
python38Packages.flowlogs_reader: 2.3.0 -> 2.4.0
2021-03-10 12:13:19 -08:00
R. RyanTM
49de36f814
python38Packages.gspread: 3.6.0 -> 3.7.0
2021-03-10 12:12:33 -08:00
Sergiu Ivanov
d19fe92b88
oh-my-zsh: remove scolobb from maintainers
2021-03-10 12:01:05 -08:00
Sandro
32b95db9c0
Merge pull request #115739 from kolaente/update/cypress-6
...
cypress: 6.5.0 -> 6.6.0
2021-03-10 20:40:24 +01:00
Sandro
e3ba08663c
Merge pull request #115751 from rhoriguchi/vscode-extensions.hashicorp.terraform
...
vscode-extensions.hashicorp.terraform: 2.7.0 -> 2.8.0
2021-03-10 20:31:57 +01:00
Sandro
cc1959bc3c
Merge pull request #115810 from antoinerg/plotly-bump
...
pythonPackages.plotly: 4.13.0 -> 4.14.3
2021-03-10 20:31:37 +01:00
Sandro
03ba1fdd4d
Merge pull request #115763 from dotlambda/cssutils-2.0.0
...
pythonPackages.cssutils: 1.0.2 -> 2.0.0
2021-03-10 20:29:43 +01:00
Sarah Brofeldt
33d6e71133
Merge pull request #98446 from srhb/fix-kafka
...
apache-kafka: Fix, update and adjust JRE/JVM
2021-03-10 20:25:13 +01:00
Patrick Hilhorst
ce3ab330b9
plexamp: add synthetica (myself) as maintainer
2021-03-10 20:12:42 +01:00
Patrick Hilhorst
bf2f6a99d5
plexamp: 3.4.2 -> 3.4.3
2021-03-10 20:12:15 +01:00
Sandro
804f493483
Merge pull request #115804 from onsails/vim-plugins
2021-03-10 20:11:08 +01:00
Sandro
9932732191
Merge pull request #115796 from MetaDark/yabridge
...
yabridge, yabridgectl: 3.0.1 -> 3.0.2
2021-03-10 20:09:48 +01:00
Patrick Hilhorst
85db5da7d2
plexamp: 3.4.1 -> 3.4.2
2021-03-10 19:52:39 +01:00
Antoine Roy-Gobeil
3e45c2dbd3
pythonPackages.plotly: 4.13.0 -> 4.14.3
2021-03-10 13:43:40 -05:00
R. RyanTM
2207d86e25
cargo-make: 0.32.12 -> 0.32.14
2021-03-10 18:39:59 +00:00
Andrey Kuznetsov
78aa9ff42e
vimPlugins.vim-clap: updated cargoSha256
2021-03-10 18:31:32 +00:00
R. RyanTM
f8a2f67fc0
update-dotdee: 5.0 -> 6.0
2021-03-10 10:28:17 -08:00
"Andrey Kuznetsov"
8492d3a4b6
vimPlugins: update
2021-03-10 18:18:50 +00:00
Andrey Kuznetsov
777698b845
vimPlugins.tremor-vim: set branch to main
2021-03-10 18:18:15 +00:00
Henri Menke
fea3cb98e1
zfs: 2.0.3 -> 2.0.4
2021-03-10 10:16:30 -08:00
Bernardo Meurer
ea1a79d181
Merge pull request #115735 from elohmeier/klipper-i686fix
...
klipper: fixup build on i686
2021-03-10 18:15:04 +00:00
Benjamin Hipple
7ff22cb08c
Merge pull request #115651 from bhipple/doc/dockertools-cleanup
...
doc: remove unnecessary \ escapes in dockertools.section.md
2021-03-10 13:09:53 -05:00
Kira Bruneau
556d4172ba
yabridge, yabridgectl: 3.0.1 -> 3.0.2
2021-03-10 13:08:25 -05:00
Ryan Mulligan
ec0b409890
Merge pull request #115626 from r-ryantm/auto-update/unit
...
unit: 1.21.0 -> 1.22.0
2021-03-10 09:51:03 -08:00
Ryan Mulligan
5f70e6f02b
Merge pull request #115794 from r-ryantm/auto-update/alda
...
alda: 1.4.3 -> 1.4.4
2021-03-10 09:50:38 -08:00
Ryan Mulligan
a6de486d41
Merge pull request #115464 from r-ryantm/auto-update/obsidian
...
obsidian: 0.11.0 -> 0.11.3
2021-03-10 09:50:18 -08:00
Ryan Mulligan
dfc657230d
Merge pull request #115476 from r-ryantm/auto-update/PortfolioPerformance
...
portfolio: 0.50.4 -> 0.51.1
2021-03-10 09:49:54 -08:00
Ryan Mulligan
5cd9b82708
Merge pull request #115731 from r-ryantm/auto-update/python3.8-vyper
...
python38Packages.vyper: 0.2.8 -> 0.2.11
2021-03-10 09:48:54 -08:00