Debian Patches

Status for golang-github-pb33f-ordered-map-v2/2.3.1-2

Patch Description Author Forwarded Bugs Origin Last update
0001-Handle-DocumentNode-wrapping-in-UnmarshalYAML.patch Handle DocumentNode wrapping in UnmarshalYAML

The go.yaml.in/yaml/v4 library (rc4 in Debian) wraps YAML input in a
DocumentNode before calling UnmarshalYAML. Upstream expects a MappingNode
directly. Unwrap any DocumentNode before checking the node kind.
Reinhard Tartler <siretart@tauware.de> yes 2026-06-14
0002-yaml_test-avoid-YAML-quoting-ambiguity-in-round-trip.patch yaml_test: avoid YAML quoting ambiguity in round-trip test
The key 'n' is ambiguous in YAML 1.1 — it can be interpreted as a
boolean 'no'/null value. go.yaml.in/yaml/v4 changed the quoting style
for this key from double quotes ('"n"') to single quotes (''n'')
between v4.0.0-rc.2 and v4.0.0-rc.5. Since TestYAMLRoundTrip compares
marshalled output against the original input with assert.Equal, the
test fails under the newer dependency.

Replace the key with 'k', which does not trigger YAML boolean ambiguity
and is rendered as an unquoted scalar by all yaml/v4 versions.

Discovered when bumping go.yaml.in/yaml/v4 from v4.0.0-rc.2 to
v4.0.0-rc.5 for Debian packaging.
Reinhard Tartler <siretart@tauware.de> yes 2026-06-15

All known versions for source package 'golang-github-pb33f-ordered-map-v2'

Links