Skip to content

Commit

Permalink
fix(yq): restore default version, reverting #405
Browse files Browse the repository at this point in the history
The new version of yq is quite breaking, as it requires '-oj -r' for continued operation in rules_oci.
We can do a default version flip later when more downstream projects are compatible.
  • Loading branch information
alexeagle committed May 5, 2023
1 parent 3d0a0fc commit 49b3187
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/repositories.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lib/private/yq_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ YQ_PLATFORMS = {
),
}

DEFAULT_YQ_VERSION = "4.33.3"
# Note: this is not the latest release, because it has significant breaking changes.
# See https://github.com/aspect-build/bazel-lib/pull/421
DEFAULT_YQ_VERSION = "4.25.2"

# https://github.com/mikefarah/yq/releases
#
Expand Down
6 changes: 3 additions & 3 deletions lib/tests/yq/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ diff_test(
yq(
name = "case_convert_json_to_yaml",
srcs = ["//lib/tests/jq:a_pretty.json"],
args = ["-p=json"],
args = ["-P"],
expression = ".",
)

Expand Down Expand Up @@ -252,7 +252,7 @@ diff_test(
yq(
name = "case_convert_xml_to_yaml",
srcs = ["sample.xml"],
args = ["-p=xml --xml-skip-proc-inst"],
args = ["-p=xml"],
expression = ".",
)

Expand Down Expand Up @@ -298,7 +298,7 @@ yq(
"//lib/tests/jq:a.json",
"//lib/tests/jq:b.json",
],
args = ["-p=json"],
args = ["-P"],
expression = ". as $item ireduce ({}; . * $item )",
)

Expand Down

0 comments on commit 49b3187

Please sign in to comment.