Skip to content

Commit 2fa2d08

Browse files
committed
fix issue after upgrading to yq 3
1 parent f6b1d35 commit 2fa2d08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ krew: dist/kubectl-neat_darwin.tar.gz dist/kubectl-neat_linux.tar.gz dist/checks
4343
yq r --tojson "dist/kubectl-neat_linux.yaml" > dist/linux.json
4444
rm dist/kubectl-neat_darwin.yaml dist/kubectl-neat_linux.yaml
4545
jq --slurp '.[0].spec.platforms += .[1].spec.platforms | .[0]' 'dist/darwin.json' 'dist/linux.json' > 'dist/kubectl-neat.json'
46-
yq r dist/kubectl-neat.json > dist/kubectl-neat.yaml
46+
yq r --prettyPrint dist/kubectl-neat.json > dist/kubectl-neat.yaml
4747
rm dist/kubectl-neat.json dist/darwin.json dist/linux.json
4848

4949
clean:

krew-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ yq r --tojson krew-template.yaml >"$tmp"
1616
jq 'delpaths([path(.spec.platforms[] | select( .selector.matchLabels.os != $os ))])' --arg os "$os" "$tmp" | sponge "$tmp"
1717
jq '.metadata.name = $name' --arg name "$plugin" "$tmp" | sponge "$tmp"
1818
jq 'setpath(path(.spec.platforms[] | select( .selector.matchLabels.os == $os ) | .sha256); $sha)' --arg os "$os" --arg sha "$sha256" "$tmp" | sponge "$tmp"
19-
yq r "$tmp" > "${tmp%.json}.yaml"
19+
yq r --prettyPrint "$tmp" > "${tmp%.json}.yaml"
2020
rm "$tmp"

0 commit comments

Comments
 (0)