Skip to content

Pages: pin json < 3.1 to fix site build on Ruby 3.1 - #438

Merged
dgrove-oss merged 1 commit into
project-codeflare:mainfrom
dgrove-oss:fix-pages-json-pin
Nov 21, 2026
Merged

dgrove-oss merged 1 commit into
project-codeflare:mainfrom
dgrove-oss:fix-pages-json-pin

Conversation

@dgrove-oss

Copy link
Copy Markdown
Collaborator

The Build GitHub Pages workflow runs Ruby 3.1, where multi_json >= 1.20 (Ruby >= 3.2) is unavailable, so Bundler resolves multi_json 1.19.1. That version calls JSON.parse(string, options) positionally, which fails with "wrong number of arguments (given 2, expected 1)" on json 3.1.0, where parse became keyword-only. The crash occurs while octokit builds an error message, masking the original GitHub API failure.

The Build GitHub Pages workflow runs Ruby 3.1, where multi_json >= 1.20
(Ruby >= 3.2) is unavailable, so Bundler resolves multi_json 1.19.1.
That version calls JSON.parse(string, options) positionally, which fails
with "wrong number of arguments (given 2, expected 1)" on json 3.1.0,
where parse became keyword-only. The crash occurs while octokit builds an
error message, masking the original GitHub API failure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dgrove-oss dgrove-oss added the housekeeping Exclude item from release notes label Nov 20, 2026
@dgrove-oss
dgrove-oss merged commit bca697b into project-codeflare:main Nov 21, 2026
3 checks passed
@dgrove-oss
dgrove-oss deleted the fix-pages-json-pin branch November 21, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

housekeeping Exclude item from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant