We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jq: error (at <stdin>:16): Cannot use null (null) as object key
1 parent 333a982 commit 65f0552Copy full SHA for 65f0552
oci/private/image.sh
@@ -159,7 +159,7 @@ for ARG in "$@"; do
159
CONFIG=$(jq --arg workdir "${ARG#--workdir=}" '.config.WorkingDir = $workdir' <<<"$CONFIG")
160
;;
161
--labels=*)
162
- CONFIG=$(jq --rawfile labels "${ARG#--labels=}" '.config.Labels += ($labels | split("\n") | map(. | split("=")) | map({key: .[0], value: .[1:] | join("=")}) | from_entries)' <<<"$CONFIG")
+ CONFIG=$(jq --rawfile labels "${ARG#--labels=}" '.config.Labels += ($labels | split("\n") | map(select(. | length > 0)) | map(. | split("=")) | map({key: .[0], value: .[1:] | join("=")}) | from_entries)' <<<"$CONFIG")
163
164
--annotations=*)
165
get_manifest |
0 commit comments