- Issue created by @adrianm6254
- 🇦🇺Australia pandaski
Having the same issue from this morning.
The provided cwd "../squizlabs/php_codesniffer" does not exist.
Here is the release note for dealerdirect/phpcodesniffer-composer-installer
https://github.com/PHPCSStandards/composer-installer/releases/tag/v1.1.0
- 🇺🇸United States rfay Palisade, CO, USA
I guess https://github.com/PHPCSStandards/composer-installer/issues/239 needs a better or more complete repro case to convince the maintainer there?
- 🇦🇷Argentina sharif.elshobkshy
A PR has been created by the author to address this bug.
Until the bug is fixed, you can temporarily revert to the previous version.
composer require dealerdirect/phpcodesniffer-composer-installer:"1.0.0"
I can confirm that #6 🐛 Composer issue when dealerdirect/phpcodesniffer-composer-installer update from v1.0.0 to v1.1.0 Active works.
- 🇳🇱Netherlands mlubbers
I can also confirm that option #6 works.
I got this message for only 2 out of ten websites running on the same server. - 🇰🇬Kyrgyzstan elaman
Perhaps, you can also do something like this:
{ ... "conflict": { "dealerdirect/phpcodesniffer-composer-installer": "1.1.0" }, ... }
So that new version with a fix will automatically go through:
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
The fix in #9 fixes it for me. It has the same effect as #6 except that later updates, when the issue is fixed, will be installed.
- 🇫🇷France Julien Tekrane
#9 is working for me. Thank you
I prefer this solution because it does not add extra stuff and not lock to a specific version
- 🇺🇸United States neclimdul Houston, TX
dang, needed contrib testing to work today and this is blocking it. That sucks.
Looks like an upstream fix is in the works to be released soon.
https://github.com/PHPCSStandards/composer-installer/pull/245
- First commit to issue fork.
- 🇬🇧United Kingdom catch
Thanks for the 10.5 MR, however we also need an 11.x MR here so we can backport from there.
- First commit to issue fork.
- 🇺🇸United States kmonty San Francisco, CA
Is this justifiable for a backport to 10.4 as well?
- 🇩🇪Germany rkoller Nürnberg, Germany
hm the MR is setting
dealerdirect/phpcodesniffer-composer-installer
to1.1.0
, but the actual fix in https://github.com/PHPCSStandards/composer-installer/pull/245 that got merged is targeted for the to be released1.1.1
? - 🇬🇧United Kingdom alexpott 🇪🇺🌍
@rkoller the MR is saying we conflict with 1.1.0 so it will not be installed.
- 🇩🇪Germany rkoller Nürnberg, Germany
argh apologies, missed the conflict line :( was only focus on the version number. thanks for the explanation!
- 🇺🇸United States xjm
Regarding a 10.4 backport, @catch and I discussed and agreed that we will consider backporting this to 11.1 and 10.4 and creating a tagged release declaring the conflict if it is not fixed upstream in advance of the next security window, since this could interfere with site updates. In the meanwhile, we recommend sites blocked on this explicitly require the
1.0.0
version as a workaround:composer require dealerdirect/phpcodesniffer-composer-installer:"1.0.0"
Adding the workaround to the IS.
- 🇺🇸United States xjm
And a reminder to remove the conflict once upstream is fixed.
- 🇬🇧United Kingdom catch
Going to go ahead and commit from needs review here given they are trivial MRs and this is urgent.
Committed/pushed to 11.x/11.2.x/10.6.x/10.5.x respectively.
Leaving open for 11.1 and 10.4 backports depending on whether there's an upstream release soon.
- 🇩🇪Germany sleitner
I wonder when (root)/composer.json for drupal/drupal is involved in install or update? I still have the problem that phpcodesniffer-composer-installer 1.1.0 is installed when updating to drupal 10.5.1 with composer.
Shouldn't the conflict setting be placed in core/composer.json for drupal/core?
- 🇬🇧United Kingdom catch
I think @sleitner is probably right... This is why we shouldn't commit issues from needs review even when they're trivial.
- Merge request !12523Issue #3493858 by vidorado, xavier.masson, smustgrave: Extend ViewsBlockBase... → (Open) created by sleitner
- 🇩🇪Germany sleitner
sleitner → changed the visibility of the branch 3532187-composer-issue-when to hidden.
- 🇺🇸United States xjm
Is there any reason not to declare the conflict in both places, for both tooling and production metapackages?
- 🇩🇪Germany sleitner
I don't think it's necessary because drupal/core is a dependency, but maybe better safe than sorry.
- 🇺🇸United States joegl
There's been a release today with a change to resolve the issue: https://github.com/PHPCSStandards/composer-installer/releases/tag/v1.1.1
- 🇺🇸United States smustgrave
Surprised the bot didn't pick this up but the MR appears to have merge conflicts
- 🇦🇺Australia VladimirAus Brisbane, Australia
Tested on D 10.5 and D11.2.
Good to go. -
alexpott →
committed e325ec12 on 10.5.x
Issue #3532187 by sleitner, immaculatexavier, alexpott, catch,...
-
alexpott →
committed e325ec12 on 10.5.x
-
alexpott →
committed f7d3976e on 10.6.x
Issue #3532187 by sleitner, immaculatexavier, alexpott, catch,...
-
alexpott →
committed f7d3976e on 10.6.x
-
alexpott →
committed 52370ec9 on 11.2.x
Issue #3532187 by sleitner, immaculatexavier, alexpott, catch,...
-
alexpott →
committed 52370ec9 on 11.2.x
-
alexpott →
committed cd9743a8 on 11.x
Issue #3532187 by sleitner, immaculatexavier, alexpott, catch,...
-
alexpott →
committed cd9743a8 on 11.x