Unverified Commit f4871a62 authored by Jonas Fierlings's avatar Jonas Fierlings
Browse files

dockerTools: Do not pass `compressor` to `streamLayeredImage`

parent f73a0793
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -517,7 +517,7 @@ rec {

  buildLayeredImage = lib.makeOverridable ({ name, compressor ? "gz", ... }@args:
    let
      stream = streamLayeredImage args;
      stream = streamLayeredImage (builtins.removeAttrs args ["compressor"]);
      compress = compressorForImage compressor name;
    in
    runCommand "${baseNameOf name}.tar${compress.ext}"
@@ -1286,7 +1286,7 @@ rec {
  # Wrapper around streamNixShellImage to build an image from the result
  buildNixShellImage = { drv, compressor ? "gz", ... }@args:
    let
      stream = streamNixShellImage args;
      stream = streamNixShellImage (builtins.removeAttrs args ["compressor"]);
      compress = compressorForImage compressor drv.name;
    in
    runCommand "${drv.name}-env.tar${compress.ext}"