Repository navigation
Keep number types in JSON to YAML conversion - #2
Merged
hamrezoffic-source merged 2 commits intoNov 23, 2026
Merged
hamrezoffic-source merged 2 commits into
hamrezoffic-source merged 2 commits into
Conversation
json.Number values were emitted as quoted YAML strings (1 -> "1"), so a JSON -> YAML -> JSON round trip silently changed types. Also fix misleading error messages and a duplicated port-check error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0183H1i14AVAdwx5KFXBDo7Q
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Go 1.22 binaries lack the LC_UUID load command that current macOS dyld requires, so the macOS test job aborted before running tests (also failing on the base branch). go.mod still declares 1.22 as the minimum language version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0183H1i14AVAdwx5KFXBDo7Q
hamrezoffic-source
merged commit Nov 23, 2026
0917714
into
copilot/extend-go-cli-with-tests-and-actions
7 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
devkit json to-yamlemitted numbers as quoted strings:json.Numberis a string type, soyaml.v3marshalled it as a string. A JSON -> YAML -> JSON round trip silently changed numbers into strings. The existing round-trip test only checked that keys existed, so it missed this.Changes
numbersToYAMLNodesconvertsjson.Numbervalues into YAML scalar nodes tagged!!intor!!float, keeping large integers exact (e.g.12345678901234567890).TestJSONToYAMLKeepsNumberTypes: checks no number is quoted, the string"5"stays a string, and the round trip returns identical JSON.json tojsonsubcommand.port checkprinted the dial error twice (stdout and stderr); stdout now prints justclosed.Checks
gofmt,go vet ./...,go test ./...all pass locally (coverage 45.2%).This PR targets the Copilot branch so it lands in #1 before that is merged into
main.