Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently autoloader-suffix
in core's composer.json is Drupal9
Proposed resolution
Remove the autoloader suffix. It was introduced in #2176265: Set an explicit ["config"]["autoloader-suffix"] in composer.json to avoid noise on composer update. when vendor was committed to the repo, this hasn't been the case for a long time now. This only affects core developers because they are the only ones using the root composer.json; individual sites using drupal/core won't be affected.
Remaining tasks
patch/review/commit
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#12 | 3254149-12.patch | 324 bytes | andypost |
| |||
#9 | 3254149-9.patch | 324 bytes | longwave |
#4 | 3254149-2.patch | 366 bytes | andypost |
|
Comments
Comment #2
andypostthe patch
Comment #3
SpokjeComment #4
andypostre-uploading patch from #2 as it applies cos #3253683: Improve compatibility with composer 2.2 is commited
Comment #5
longwaveTechnically a duplicate of #3252262: [Drupal 10] Update autloader-suffix in composer.json which was first, and I have the same question: why do we need the version number here? Can we just use "Drupal"?
Comment #6
andypostComment #7
longwaveLooking back to when this was first introduced: #2176265: Set an explicit ["config"]["autoloader-suffix"] in composer.json to avoid noise on composer update.
This was done to reduce noise in composer update patches, back when we had vendor in the repo, including the autoloader. This is no longer the case so I think we can probably drop this entirely now, and fall back to Composer generating a random string instead?
Comment #8
longwaveAlso, this autoloader-suffix only affects core developers, because they are the only ones that use the root composer.json. It's not set in core/composer.json so site autoloaders get a random suffix anyway.
Comment #9
longwaveRepurposed the issue following #7/#8 - please change this back if I am wrong about this!
Comment #10
andypostAs it affects only core devs, then ready to go
Comment #11
catchNeeds a re-roll.
Comment #12
andypostre-roll
Comment #13
longwaveThanks @andypost.
Comment #15
catchCommitted d787fa2 and pushed to 10.0.x. Thanks!