Closed (fixed)
Project:
Drupal core
Version:
10.5.x-dev
Component:
base system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Mar 2025 at 00:48 UTC
Updated:
14 Jun 2025 at 11:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanComment #4
longwaveAs it's a dev dependency we could consider bumping the lockfile version to 6.x in 11.2 (while still allowing downgrades to 5.x), similar to us upgrading from PHPStan 1 to 2.
Comment #5
jackfoust commentedI believe this is also blocking composer to be updated past 2.8.6
Comment #6
dafederWhat would be the issue with allowing either on earlier Drupal versions? I'm trying to use 6.x in a module now and this would mean we'd basically have to wait until 11.1 is EOL to ship these features safely, right? I imagine Experience Builder would have the same issue...
Comment #7
mlubbers commentedBecause justinrainbow/json-schema is currently added as a core-dev (11.6) dependency and pinned to the 5.x version, it causes updating composer from 2.8.6 to 2.8.8 to fail.
Composer -v wrongly reports composer version 2.8.8 (after composer self-update), using the "composer update composer/composer" command gives the message you're already using the latest version.
Running the command "composer outdated "still reports 2.8.6.
Version 2.8.6 is of course still mentioned in composer.json en -lock files.
I hope the next drupal/core-dev update allows to run justinrainbow/json-schema ^6.4 to resolve the issue.
Comment #8
longwaveBumping to critical as this is preventing Composer from being updated.
Comment #9
nicxvan commentedThis needs a rebase.
Comment #10
quietone commentedComment #12
bbralaRebased.
Comment #14
bbralaSeems it has an undocumented change:
https://github.com/jsonrainbow/json-schema/issues/822
Comment #15
longwaveNote to committer: MR !11685 is the one to use so we stick to 5.x for now, the other one is to prove that the update passes. Later we may have to bump to 6.x as the default anyway to allow Composer to update.
Comment #16
bbralaWent through the changes, these look good.
For a small moment i thought, why wouldnt we not just update the baseline? But that might be a hassle when switching between 5 and 6.
And in regards to contrib, it is pretty easy to support 5 and 6 for now, change is not that bad as you can see in this mr.
Anyways, all good, cool ^^
Edit: hmm, thinking, do we need a changerecord for this or are we communicating this in the parent issue?
Comment #17
longwaveDon't think we need a change record, but we should add a line for this to the 11.2.0 release notes.
Comment #19
andypostrebased after #3522353: Update Composer dependencies for 11.2.0
Comment #20
bbralaSeems we have an issue left here after rebase:
Comment #21
bbralaNever mind me, all good, that is the branch which uses 6.x to test. Adding ignore so tests run, but nothing to worry about. Keeping RTBC
Comment #22
bbralaAll green and happy after the rebase.
Comment #23
penyaskito+1 🤯 until I got to https://github.com/jsonrainbow/json-schema/blob/b209eb8f203fd36284b2c747....
Comment #24
andypostthe only question when we can drop 5.x of it
Comment #25
longwave@andypost Probably not until Drupal 12.
Comment #26
andypostComment #27
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #28
bbralaUpdated lock file hash.
Comment #29
alexpottGiven #17 we should add a release note snippet for 11.2.0 - probably pointing to https://github.com/jsonrainbow/json-schema/blob/master/UPGRADE-6.0.md to be helpful.
Comment #30
alexpottCan be set to RTBC when done and I will prioritise.
Comment #31
longwaveAdded a note.
Comment #32
longwaveComment #33
alexpottCommitted and pushed 656836718c4 to 11.x and 4eb755b42fc to 11.2.x. Thanks!
Comment #36
jackfoust commentedCan this be applied to 10.4.x?
Comment #37
andypostRe #36 as a custom patch for sure
Comment #40
longwaveDiscussed with @catch, as this is a development dependency only and the compatibility changes are minor we think this could be backported to 10.5.x.
Comment #42
andypostbackported
Comment #44
bbralaNo weird changes, actual green tests in main MR and also the test mr with updates package. Nice :)
Comment #46
alexpottCommitted f6a3149 and pushed to 10.5.x. Thanks!