docker-tool: fix maxLayers assert

This commit is contained in:
Adrian Gierakowski 2024-11-11 18:45:13 +00:00
parent 5b4a8db4d9
commit 6cecfd8ad7

View File

@ -931,7 +931,7 @@ rec {
debug ? false
}:
assert
(lib.assertMsg (layeringPipeline == null && maxLayers > 1)
(lib.assertMsg (layeringPipeline == null -> maxLayers > 1)
"the maxLayers argument of dockerTools.buildLayeredImage function must be greather than 1 (current value: ${toString maxLayers})");
assert
(lib.assertMsg (enableFakechroot -> !stdenv.hostPlatform.isDarwin) ''