Skip to content

Upgrade yq from v3 to v4.52.4#1581

Open
colincasey wants to merge 2 commits intomainfrom
upgrade-yq-v4
Open

Upgrade yq from v3 to v4.52.4#1581
colincasey wants to merge 2 commits intomainfrom
upgrade-yq-v4

Conversation

@colincasey
Copy link
Contributor

@colincasey colincasey commented Mar 20, 2026

Summary

  • Upgrade vendored yq binary from v3 to v4.52.4 (UPX-compressed)
  • Migrate all yq r file key calls to v4 expression syntax (yq '.key' file)
  • Add lib/yaml.sh with read_yaml wrapper (mirroring read_json from lib/json.sh)
  • Rename binary to yq-4.52.4-linux for version clarity
  • Add explicit null handling for yq v4 missing key behavior

W-21680687

Replace the vendored yq v3 binary with v4.52.4 (UPX-compressed).
yq v4 removed the `r` subcommand, so all call sites are updated
to use v4 expression syntax. A new `lib/yaml.sh` module provides
a `read_yaml` wrapper (mirroring `read_json` from `lib/json.sh`)
to centralize yq access.

W-21680687
@colincasey colincasey self-assigned this Mar 20, 2026
@colincasey colincasey marked this pull request as ready for review March 20, 2026 14:35
@colincasey colincasey requested a review from a team March 20, 2026 14:35
@colincasey colincasey requested a review from a team as a code owner March 20, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants