Skip to content

feat(yq): add go-yaml dep and YAML decoding for devbase yq - #1233

Open
malept wants to merge 1 commit into
mainfrom
malept-claude/yq-01-convert
Open

malept wants to merge 1 commit into
mainfrom
malept-claude/yq-01-convert

Conversation

@malept

@malept malept commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

What this PR does / why we need it

Adds github.com/itchyny/go-yaml as a new dependency, and internal/yq/convert.go, which decodes YAML into gojq's plain value shape while recording each decoded object's original key order for later key-order-preserving output. Part of replacing shell/yq.sh's gojq/python-yq subprocess wrapper with a devbase yq Go subcommand (#1217).

Notes for your reviewers

internal/yq/convert_test.go covers decoding scalars, nested maps/sequences, and the key-order side-table this PR introduces for later use.

github.com/itchyny/gojq is added in #1235, where it's actually imported; this PR only decodes YAML, and go mod tidy would otherwise strip gojq as unused.


Generated by Claude Code

@malept
malept force-pushed the malept-claude/yq-01-convert branch 2 times, most recently from dd76639 to ef518a5 Compare October 19, 2026 14:08
@getoutreach-ci-2

Copy link
Copy Markdown

Link to code coverage report (posted by coverbot 🤖)

@malept malept changed the title feat(yq): add gojq/go-yaml deps and YAML decoding for devbase yq feat(yq): add go-yaml dep and YAML decoding for devbase yq Oct 19, 2026
@malept
malept force-pushed the malept-claude/yq-01-convert branch 2 times, most recently from 7ba4eea to baf8599 Compare October 20, 2026 15:26
@malept
malept added this pull request to stack #1247 October 20, 2026 15:35
@malept
malept marked this pull request as ready for review October 21, 2026 01:02
@malept
malept requested a review from a team as a code owner October 21, 2026 01:02
@malept
malept marked this pull request as draft October 21, 2026 01:03
@malept
malept marked this pull request as ready for review October 21, 2026 01:03
Adds github.com/itchyny/go-yaml and internal/yq/yq.go, which decodes
YAML into gojq's plain value shape while recording each decoded
object's original key order for later key-order-preserving output.

github.com/itchyny/gojq itself is added in a later commit, the first
one that actually imports it: this commit only decodes YAML, so
go mod tidy would otherwise strip gojq as unused.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6KZ8poDhgpwRBbP4VrvPe
@malept
malept force-pushed the malept-claude/yq-01-convert branch from baf8599 to 548237b Compare October 21, 2026 16:32
@malept
malept requested a review from iamrz1 October 21, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants