Closed (fixed)
Project:
Library Attach
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2024 at 22:52 UTC
Updated:
8 Mar 2024 at 15:44 UTC
Jump to comment: Most recent
If installing using `composer install --no-dev`, the symfony/css-selector package is not installed and library_attach errors in LibraryAttach->getLibrarySelectors().
When investigating composer.lock I see an error with the following message:
"error": "require.symfony/css-selector : invalid version constraint (Could not parse version constraint 3.0 - 6.*: Invalid version string \"3.0 - 6.*\")"
Install composer dependencies passing the --no-dev flag.
Update library_attach composer.json to require a valid symfony/css-selector version constraint
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
adam-delaney commentedBased upon composer's documentation this appears to be a valid constraint using Hyphenated Version Range, see: https://getcomposer.org/doc/articles/versions.md#hyphenated-version-range-. I wonder if it cannot be used in combination with wildcard?
Comment #3
dave reidHmm, odd. I wonder if this is just failing now on newer versions of Composer. I wonder if we could just use a more explicit dependency like
^4.0 || ^5.0 || ^6.0 || ^7.0.I will add some CI integration so that we can snuff this out and get it resolved quickly!
Comment #4
dave reidActually it looks like it's already failing on CI: https://git.drupalcode.org/project/library_attach/-/jobs/283789
Comment #6
dave reidComment #7
adam-delaney commentedLooks like changes in your pull request (https://git.drupalcode.org/project/library_attach/-/merge_requests/1) are passing CI (https://git.drupalcode.org/project/library_attach/-/jobs/761744) and would solve this issue. Thanks Dave for looking into that. A release with this fix would be great!
Comment #9
dave reidMerged and tagging release now!
Comment #10
dave reidhttps://www.drupal.org/project/library_attach/releases/1.0.1 is out.
Comment #11
adam-delaney commentedThanks Dave! Tested and works as expected.