ErrLookup › mikefarah/yq

mikefarah/yq

yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor · Go · 156 source files

Analyzed at 8b5af0694b on 2026-09-05. 153 documented errors.

Code / MessageTypeSeverityTags
yaml node has no content
exception error yaml, decoder, empty-input
bad path expression, got close collect brackets without matc
exception error expression, parser, brackets
bad expression, got close brackets without matching opening
exception error expression, parser, brackets
must provide a date time format string and an expression, e.
validation error datetime, expression, usage
no support for output format
exception error encoder, output-format, build-tags
no support for input format
exception error go, yq, decoder, build-tags
aborted
exception error go, yq, expression, control-flow
unrecognised type :( %v
exception error go, yq, json, deserialization
orderedMap: invalid yaml node
exception error go, yq, yaml, deserialization
unknown operator %v
exception error go, yq, expression, operator
hcl parse error: %w
exception error
no hcl file parsed
exception error
failed to read INI content: %w
exception error
failed to parse INI content: %w
exception error
only keyvalue pairs are supported in inlinetables, got %v in
exception error
unsupported type %v
exception error
pkg: %v
panic error
invalid XML: Encountered chardata [%v] outside of XML node
exception error
cannot encode %v as base64, can only operate on strings
exception error
csv encoding only works for arrays of scalars (string/number
exception error
csv object encoding only works for arrays of flat objects (s
exception error csv, encoding, objects, yq
csv object encoding only works for arrays of flat objects (s
exception error csv, encoding, objects, mixed-types, yq
csv encoding only works for arrays, got: %v
exception error csv, encoding, root-node, yq
failed to encode HCL: %w
exception error hcl, encoding, wrapped-error, yq
unsupported character %q in raw HCL expression
exception error hcl, encoding, raw-expression, unsupported-character, yq
HCL encoder expects a mapping at the root level, got %v
exception error hcl, encoding, root-node, mapping-required, yq
expected mapping node for block body
exception error hcl, encoding, blocks, mapping-required, yq
HCL encoder does not support aliases
exception error hcl, encoding, aliases, yaml-anchors, yq
unsupported node kind: %v
exception error hcl, encoding, unsupported-kind, yq
INI encoder supports only MappingNode at the root level, got
exception error ini, encoder, yaml, node-kind
lua encoder NYI -- %s
exception error lua, encoder, tag, not-implemented
--lua-global requires a top level MappingNode
validation error lua, encoder, globals, mapping
unsupported node %v
exception error properties, encoder, node-kind
cannot encode %v as URI, can only operate on strings. Please
exception error shell, encoder, string, type-mismatch
unsupported node %v
exception error shell, shellvariables, encoder, node-kind
TOML encoder expects a mapping at the root level
exception error toml, encoder, mapping, node-kind
cannot encode TOML entry with empty path
exception error toml, encoder, path, empty-key
unsupported node kind for TOML: %v
exception error toml, encoder, node-kind, alias
aliases are not supported in TOML
validation error toml, encoder, yaml-aliases, unsupported-node-kind
unsupported array item kind: %v
validation error toml, encoder, unsupported-node-kind
unsupported inline table value kind: %v
validation error toml, encoder, yaml-aliases, inline-table
cannot encode %v as URI, can only operate on strings. Please
validation error uri, encoder, type-mismatch, string-conversion
cannot encode %v to XML - only maps can be encoded
validation error xml, encoder, unsupported-root-kind, type-mismatch
unsupported type %v
validation error xml, encoder, yaml-aliases, unsupported-node-kind
cannot use %v as attribute, only scalars are supported
validation error xml, encoder, attributes, type-mismatch
configure YAML encoding: %w
exception error yaml, encoding, configuration
'%v' expects 1 arg but received none
validation error expression, parser, syntax
'%v' expects 2 args but there is %v
validation error expression, parser, syntax
bad expression, please check expression syntax
validation error expression, parser, syntax
bad expression, could not find matching `]`
validation error expression, bracket, syntax
bad expression, could not find matching `}`
validation error expression, bracket, syntax
bad expression, could not find matching `)`
validation error expression, bracket, syntax
bad expression - probably missing close bracket on %v
validation error expression, bracket, syntax
failed copying from %v to %v: %w
exception error filesystem, in-place, symlink
unknown format '%v' please use [%v]
validation error
%v is not within [%v, %v]
validation error
%v (%v) cannot be added to a %v (%v)
validation error
%v cannot be added to %v
validation error
unable to parse duration [%v]: %w
validation error
can only use merge anchors with maps (!!map) or sequences (!
validation error
all only supports arrays, was %v
validation error
any only supports arrays, was %v
validation error
CollectObject: mismatching node sizes; are you creating a ma
validation error yq, collect-object, map-construction, mismatched-sizes
maps not yet supported for comparison
validation error yq, comparison-operator, unsupported-type, map
arrays not yet supported for comparison
validation error yq, comparison-operator, unsupported-type, array
%v (%v) cannot be subtracted from %v
validation error yq, comparison-operator, type-mismatch, scalar
%v not yet supported for comparison
validation error yq, comparison-operator, unsupported-type, scalar-tag
%v not yet supported for contains
validation error yq, contains-operator, unsupported-type
%v cannot check contained in %v
validation error yq, contains-operator, type-mismatch
could not find %v for format_time
validation error yq, datetime, missing-argument
could not load tz [%v]: %w
validation error
could not parse datetime of [%v] using layout [%v]: %w
validation error
from_unix only works on numbers, found %v instead
validation error
cannot delete nodes from parent of tag %v
validation error
%v (%v) cannot be divided by %v (%v)
validation error
%v cannot be divided by %v
validation error
%v has no keys
validation error
expected to find one 'key' entry but found %v in position %v
validation error
expected to find one 'value' entry but found %v in position
validation error yq, entries, validation
from entries only runs against arrays
validation error yq, entries, type-mismatch
env operations have been disabled
console error yq, security, environment
value for env variable '%v' not provided in env()
validation error yq, environment, missing-variable
cannot substitute with %v, can only substitute strings. Hint
validation error yq, environment, type-mismatch
only arrays are supported for flatten
validation error yq, flatten, type-mismatch
only arrays are supported for group by
validation error yq, group-by, type-mismatch
cannot get keys of %v, keys only works for maps and arrays
validation error yq, keys, type-mismatch
could not load %s
console error yq, load, build-tags, decoder
file operations have been disabled
console error
filename expression returned nil
validation error
failed to load %v: %w
console error
%v (%v) cannot modulo by %v (%v)
validation error
cannot modulo by 0
validation error
%v cannot modulo by %v
validation error
cannot multiply %v with %v
validation error yq, multiplication, type-mismatch, yaml
cannot repeat string by a negative number (%v)
validation error yq, string-repetition, negative-number, validation
result of repeating string (%v bytes) by %v would exceed %v
validation error yq, string-repetition, memory-limit, resource-limit
%v: expected path array, but got %v instead
validation error yq, setpath, delpaths, path-expression, type-mismatch
%v: could not parse %v as an int: %w
validation error yq, setpath, delpaths, path-expression, parsing
%v: expected either a !!str or !!int in the path, found %v i
validation error yq, setpath, delpaths, path-expression, type-mismatch
SETPATH must be given a block (;), got %v instead
validation error yq, setpath, syntax, expression-parsing
SETPATH: expected single path but found %v results instead
validation error yq, setpath, path-expression, cardinality
SETPATH: expected single value on RHS but found %v
validation error yq, setpath, cardinality, path-expression
DELPATHS: expected single value but found %v
validation error yq, delpaths, cardinality, path-expression
DELPATHS: expected a sequence of sequences, but found %v
validation error yq, delpaths, type-mismatch, argument-validation
DELPATHS: expected entry [%v] to be a sequence, but its a %v
validation error yq, delpaths, type-mismatch, path-arrays
cannot index array with %v
validation error yq, pick, array-index, parse-error
cannot pick indices from type %v (%v)
validation error yq, pick, type-mismatch, node-kind
sequence contains elements of %v and %v types
validation error yq, pivot, heterogeneous-sequence, type-mismatch
cannot pivot node of type %v
validation error yq, pivot, type-mismatch, node-kind
can only pivot elements of !!seq or !!map types, received %v
validation error yq, pivot, scalar-elements, unsupported-type
reduce must be given a variables assignment, got %v instead
validation error yq, reduce, syntax-error, expression-structure
reduce must be given a block, got %v instead
validation error yq, reduce, syntax-error, missing-block
node at path [%v] is not an array (it's a %v)
validation error yq, reverse, type-mismatch, node-kind
node at path [%v] is not an array (it's a %v)
validation error
expected to find 1 number, got %v instead
validation error
node at path [%v] is not an array or map (it's a %v)
validation error
cannot trim %v, can only operate on strings.
validation error
cannot change case with %v, can only operate on strings.
validation error
cannot substitute with %v, can only substitute strings. Hint
validation error
'i' is not a valid option for match. To ignore case, use an
validation error
unrecognised match params '%v', please see docs at https://m
validation error
cannot match with %v, can only match strings. Hint: Most oft
validation error
cannot join with %v, can only join arrays of scalars
validation error yq, join, type-mismatch, arrays
cannot split %v, can only split strings
validation error yq, split, type-mismatch, strings
unknown style %v
validation error yq, style, invalid-argument, operator
maps not yet supported for subtraction
validation error yq, arithmetic, unsupported-operation, maps
%v (%v) cannot be subtracted from %v
validation error yq, type-mismatch, subtract-operator, arrays
strings cannot be subtracted
validation error yq, strings, subtract-operator, type-mismatch
%v cannot be added to %v
validation error yq, type-mismatch, subtract-operator, null
unable to parse duration [%v]: %w
validation error yq, datetime, duration, parsing
system operator: argument must be a non-null scalar; got kin
validation error yq, system-operator, argument-validation, yaml
system operator: args must be a non-null scalar or sequence
validation error yq, system-operator, argument-validation, yaml
system operator: command expression returned no results
validation error yq, system-operator, empty-result, expression
system operator: command must be a string scalar
validation error yq, system-operator, type-error, yaml
system operator: command must be a non-empty string
validation error yq, system-operator, validation, empty-string
system operations are disabled, use --security-enable-system
validation error yq, system-operator, security, configuration
system command '%v' failed: %w stderr: %v
exception error yq, system-operator, exec, stderr, process-exit
system command '%v' failed: %w
exception error yq, system-operator, exec, process-exit, path
cannot convert node at path %v of tag %v to number
validation error yq, to-number, type-error, yaml
cannot convert node value [%v] at path %v of tag %v to numbe
validation error yq, to-number, type-conversion, validation, yaml
alias cycle detected
exception error yaml, alias, anchors, recursion
cannot index array with '%v' (%w)
exception error yaml, array, indexing, traversal
index [%v] out of range, array size is %v
exception error yaml, array, indexing, out-of-range
only arrays are supported for unique
exception error yaml, arrays, unique, type-error
must use variable with a pipe, e.g. `exp as $x | ...`
exception error yaml, variables, expression-syntax
RHS of 'as' operator must be a variable name e.g. $foo
exception error yaml, variables, expression-syntax
with must be given a block (;), got %v instead
exception error yaml, with-operator, expression-syntax
can't serialise value because it contains NUL char and you a
exception error output, nul-separated, serialization
bad file '%v': %w
exception error parsing, file-input, decoding
bad file '%v': %w
exception error parsing, file-input, decoding
panic(err) on parseInt64 failure while sorting !!int values
panic critical panic, sorting, yq, int64-overflow
panic(err) on ParseFloat failure while sorting numeric value
panic critical panic, sorting, yq, parsefloat
panic(err) on copier.Copy failure of traverse preferences
panic error panic, yq, internal, preferences-copy