You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a package-local yq conformance suite under contrib/yq using the shared conformance harness
add a pinned upstream mikefarah/yqv4.52.4 oracle via Nix, scripts/ensure-yq.sh, and internal/testutil helpers
widen make contrib-conformance-test so CI runs jq, awk, and yq contrib parity suites
Why
This mirrors the existing jq and awk contrib parity setup so yq’s oracle-backed conformance coverage lives with the contrib command and uses an oracle version that exactly matches the embedded yq library.
Impact
adds GBASH_RUN_YQ_CONFORMANCE and GBASH_CONFORMANCE_YQ
adds make ensure-yq
updates contrib docs to describe jq, awk, and yq parity coverage
fixes yq missing-file diagnostics so missing input and --from-file paths surface on stderr in the new suite
Validation
go test ./internal/testutil -run TestResolveNixYQ -count=1
Preserve existing exit codes when wrapping AWK load errors
Run now forces exit code 2 for errors from loadAWKProgram/loadAWKInputs, but those helpers can already return a *commands.ExitError from inv.FS.Open (for example, sandbox read-policy denials that carry code 126). Re-wrapping with a hard-coded 2 changes command semantics and makes policy failures indistinguishable from ordinary awk usage/file errors; this is a regression from the previous behavior where those exit codes were propagated unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
contrib/yqusing the shared conformance harnessmikefarah/yqv4.52.4oracle via Nix,scripts/ensure-yq.sh, andinternal/testutilhelpersmake contrib-conformance-testso CI runs jq, awk, and yq contrib parity suitesWhy
This mirrors the existing jq and awk contrib parity setup so yq’s oracle-backed conformance coverage lives with the contrib command and uses an oracle version that exactly matches the embedded yq library.
Impact
GBASH_RUN_YQ_CONFORMANCEandGBASH_CONFORMANCE_YQmake ensure-yq--from-filepaths surface on stderr in the new suiteValidation
go test ./internal/testutil -run TestResolveNixYQ -count=1go test ./contrib/yq -count=1nix build .#yq --extra-experimental-features 'nix-command flakes'make contrib-conformance-testmake lint