- 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:
- ๐ซ๐ทFrance Kgaut
#6 fix the issue for my project after updating to drupal 11.2.*
- ๐จ๐ฆ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
- ๐ฌ๐งUnited Kingdom catch
I think we can/should commit #9 to core.
- 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 & Berlin, DE
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.
- ๐บ๐ธUnited States anthonyroundtree
Is there a plan to address 11.1.x users?
- ๐ฉ๐ช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
Automatically closed - issue fixed for 2 weeks with no activity.