mirror of
https://github.com/mikefarah/yq.git
synced 2026-06-29 08:38:48 +00:00
When using --front-matter, yq creates a temporary file for the extracted YAML content but replaces the original filename in args with the temp file path. This caused the 'filename' operator to return the temp file path instead of the original filename. Added a filename alias mechanism: when front matter processing replaces the file path, it registers the original filename as an alias. The readDocuments and stream evaluator functions resolve aliases before setting candidateNode.filename. Fixes #2538 Co-authored-by: cobyfrombrooklyn-bot <cobyfrombrooklyn@gmail.com> |
||
|---|---|---|
| .. | ||
| completion.go | ||
| constant.go | ||
| evaluate_all_command_test.go | ||
| evaluate_all_command.go | ||
| evaluate_sequence_command_test.go | ||
| evaluate_sequence_command.go | ||
| root_test.go | ||
| root.go | ||
| unwrap_flag.go | ||
| utils_test.go | ||
| utils.go | ||
| version_test.go | ||
| version.go | ||