Skip to content

[pull] main from livekit:main - #446

Merged
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main
Aug 16, 2026
Merged

[pull] main from livekit:main#446
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main

Conversation

@pull

@pull pull Bot commented Aug 16, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Consolidate on go.yaml.in/yaml/v3

protocol pulled in two copies of the same yaml library: gopkg.in/yaml.v3
(auth, configutil, livekit/types) and go.yaml.in/yaml/v3 (transitively via
buf.build/go/protoyaml). go.yaml.in is the project's new canonical home, so
switch our own imports over and compile it once.

RoomConfiguration, RoomEgress and RoomAgent needed care. Their custom
UnmarshalYAML took a *yaml.Node, and a yaml decoder only recognizes that
method if the Node belongs to its own package. Simply re-pointing the import
would mean every caller still decoding with gopkg.in/yaml.v3 -- the server,
egress, ingress, sip and cloud all do -- silently stops invoking the custom
unmarshaller and falls back to reflective struct decoding of a protobuf
message. No compile error; fields such as min_playout_delay just quietly
come back zero.

Instead these now use the func-based unmarshal signature, which names no
types from any yaml package and so is honored by both decoders. Downstream
repos keep working unchanged, whichever yaml package they import.

Added TestUnmarshallRoomConfigurationBothYAMLPackages, which decodes the
same document with both packages and asserts a populated message. Verified
it fails (min_playout_delay 0 instead of 42) if the *yaml.Node signature is
restored. gopkg.in/yaml.v3 stays in go.mod for that test only; it is no
longer in the compiled dependency set.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Add changeset for consolidating go.yaml.in/yaml/v3

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Aug 16, 2026
@pull pull Bot added the ⤵️ pull label Aug 16, 2026
@pull
pull Bot merged commit 32681c6 into erickirt:main Aug 16, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant