Documentation Index
Fetch the complete documentation index at: https://docs.aspect.build/llms.txt
Use this file to discover all available pages before exploring further.
Documentation for @yq.bzl@v0.3.5 — View source
BUILD file:
Examples
Remove fields:Function: yq
Invoke yq with an expression on a set of input files.
yq is capable of parsing and outputting to other formats. See their docs for more examples.
Parameters
Name of the rule
List of input file labels
yq expression (https://mikefarah.gitbook.io/yq/commands/evaluate).Defaults to the identity expression ”.”.
Subject to stamp variable replacements, see Stamping.
When stamping is enabled, an environment variable named “STAMP” will be available in the expression.Be careful to write the filter so that it handles unstamped builds, as in the example above.
Additional args to pass to yq.Note that you do not need to pass eval or eval-all as this is handled automatically based on the number
srcs.
Passing the output format or the parse format is optional as these can be guessed based on the file extensions in srcs and outs.Name of the output files.Defaults to a single output with the name plus a “.yaml” extension, or the extension corresponding to a passed output argument such as
"-o=json".
For split operations you must declare all outputs, as the name of the output files depends on the expression.Other common named parameters such as
tags or visibility
