Closed (fixed)
Project:
Automatic Updates
Version:
3.0.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 May 2023 at 06:56 UTC
Updated:
20 Jun 2023 at 16:34 UTC
Jump to comment: Most recent
Comments
Comment #3
wim leersComment #4
wim leersLooks like
OverwriteExistingPackagesValidatorTestnow fails. Which kinda makes sense — it relates to the changes that 2.5.6/2.5.7 made — at @phenaproxima's request by the way! 😄Comment #5
wim leersLocally, I was not getting
but:
(That was happening for the
Chi-teck/drupal-code-generatorpackage.)So I had to first overcome that.
Fix just pushed.
Now I get the same test failure. 👍
Comment #6
wim leersThe hard failures imply that if you're on the latest stable Composer version, Package Manager/Automatic Updates will not work. That makes this a hard blocker for the alpha AFAICT.
Comment #7
wim leersComment #8
phenaproximaIs there a reason we don't just bump our Composer requirement to ~2.5.7, rather than build in more workarounds for older versions?
Comment #9
wim leersThere will always be something in upcoming Composer versions that's new/different, won't there be? We gotta draw the line somewhere.
2.5.5has been out for >2 months.2.5.7for a few days.But … sure, I'm not opposed to that 😇 😄
Comment #10
phenaproximaIn this case, though, we're specifically bumping it to avoid regressions and things that directly affect us. We're not just bumping it for the sake of bumping it.
So IMHO that's the appropriate course of action, rather than adding even more code to an existing, complex workaround. We should just remove the workaround.
Comment #11
wim leersWFM!
Comment #12
wim leersPer discussion just now, sounds like @tedbow disagreed with #10.
Comment #13
tedbowre #12 I think since this Drupalcon is coming up next wee and we want people to test and install Auto Updates on an Alpha release(to be cut soon) we should not rely on a version of composer that came out last week. I think it is much likely people will already have a version 2.5.5 that was released over 2 months ago.
Many people may not want to update Composer or won't be able to because of hosting. Also the fix we want in #11455 has a BC warning so it is likely that some sites might not be able to update to it because will make another Composer plugin break. Or if update at Drupalcon they could get weird behavior because it breaks another plugin(if they were to allow it with our module). Also the fix we want already caused 1 regression https://github.com/composer/composer/pull/11481
Comment #14
tedbowI fix needed otherwise looks good
Comment #15
wim leersComment #16
tedbowMerged 3.0.x. Looks good to commit when tests pass. Thanks!
Comment #17
tedbowMerge conflicts
Comment #19
omkar.podey commentedComment #20
wim leersThanks!
Comment #21
phenaproximaOne thing: can we at least have a
@todoto remove the metapackage workaround when 2.5.7 is the minimum required version of Composer? 🙏Comment #22
chrisfromredfinTested manually and it fixed the problem for me (in DrupalPod / on 2.5.7). I will also close https://www.drupal.org/project/automatic_updates/issues/3365125
Comment #24
phenaproxima