dockerTools: discard closure reference in imageTag

This commit is contained in:
Xavier Maillard 2024-03-20 17:54:09 +01:00
parent f252205323
commit bc40f51d1a
No known key found for this signature in database
GPG Key ID: 917B2960C98D07CF

View File

@ -637,7 +637,7 @@ rec {
if tag != null
then tag
else
lib.head (lib.strings.splitString "-" (baseNameOf result.outPath));
lib.head (lib.strings.splitString "-" (baseNameOf (builtins.unsafeDiscardStringContext result.outPath)));
} ''
${lib.optionalString (tag == null) ''
outName="$(basename "$out")"
@ -1001,7 +1001,7 @@ rec {
if tag != null
then tag
else
lib.head (lib.strings.splitString "-" (baseNameOf conf.outPath));
lib.head (lib.strings.splitString "-" (baseNameOf (builtins.unsafeDiscardStringContext conf.outPath)));
paths = buildPackages.referencesByPopularity overallClosure;
nativeBuildInputs = [ jq ];
} ''