Skip to content

dep(dev): pin json to < 3 in the rails_8_1 appraisal - #350

Merged
flavorjones merged 1 commit into
mainfrom
card-5274-json-pin
Sep 18, 2026
Merged

flavorjones merged 1 commit into
mainfrom
card-5274-json-pin

Conversation

@flavorjones

@flavorjones flavorjones commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Motivation

Both rails_8_1 CI jobs failed, unit with 7 errors and integration with 3. json 3.0 made ::JSON.parse's options keyword-only, and ActiveSupport::JSON.decode in Rails 8.1.3.1 still passes them positionally, so every tenant JSON round trip raised ArgumentError.

Details

Pin json to < 3 in the rails-8-1 appraisal and regenerate. The pin goes in Appraisals rather than the generated gemfiles/rails_8_1.gemfile, which the dependabot regeneration workflow would overwrite.

Additional information

The pin comes out once a Rails 8.1 release carries the backport of rails/rails#58601, already on main and 8-1-stable, which is why the rails_edge jobs stayed green.

ref: rails/rails#58685

🤖 Generated with Claude Code

Both rails_8_1 CI jobs failed, unit with 7 errors and integration with 3.
json 3.0 made `::JSON.parse`'s options keyword-only, and
`ActiveSupport::JSON.decode` in Rails 8.1.3.1 still passes them
positionally, so every tenant JSON round trip raised ArgumentError. The
appraisal lockfiles are gitignored, so every run re-resolved onto json 3.0.2.

Pin `json` to `< 3` in the `rails-8-1` appraisal and regenerate. The pin
goes in `Appraisals` rather than the generated `gemfiles/rails_8_1.gemfile`,
which the dependabot regeneration workflow would overwrite. It comes out
once a Rails 8.1 release carries the backport of rails/rails#58601, which
is already on `main` and `8-1-stable` and is why the rails_edge jobs stayed
green.

ref: rails/rails#58685

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings September 18, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@flavorjones
flavorjones merged commit bf196dd into main Sep 18, 2026
11 checks passed
@flavorjones
flavorjones deleted the card-5274-json-pin branch September 18, 2026 18:22
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.

2 participants