Fix test failure with gojq 0.12.19 - use int instead of int32#266
Merged
ricardozanini merged 1 commit intoJun 26, 2026
Merged
Conversation
gojq v0.12.18 introduced a breaking change that stopped numeric normalization for concurrent execution. This means int32 values are no longer automatically normalized to int, causing evaluation errors. Changed []int32 to []int in the SUM_Numbers test to use gojq's supported numeric type. Related: gojq changelog v0.12.18 "stop numeric normalization" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
Summary
[]int32to[]intin the SUM_Numbers testRoot Cause
gojq v0.12.18 introduced a breaking change that stopped numeric normalization for concurrent execution. This means
int32values are no longer automatically normalized toint, causing evaluation errors.gojq only supports these types:
nil,bool,int,float64,*big.Int,string,[]any,map[string]anyWhen the test passes
[]int32{2, 3, 4}, gojq v0.12.19 throws:Changes
Changed line 405 in
impl/runner_test.go:Test Plan
All tests pass after this change:
References
🤖 Generated with Claude Code