Problem/Motivation
After updating to v3.0.4, subsequent uses of composer (for unrelated modules/packages) resulted in a blocking error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires flatpickr-library/flatpickr-library, it could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.
- It's a private package and you forgot to add a custom repository to find it
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.Steps to reproduce
- Install or update the timepicker module to v3.0.4
- Run a composer command on a different module, e.g.
composer update drupal/token_views_filter --with-all-dependencies --dry-run - Note the blocking error as cited above
Proposed resolution
It appears that the module's composer.libraries.json file needs a small tweak to get composer to run properly after installation/updating (module file path: timepicker-timepicker/composer.libraries.json):
- line 90 - before:
"flatpickr-library/flatpickr-library": "4.6.13" - line 90 - after:
"flatpickr/flatpickr": "4.6.13"
(Note: line 90 could be preserved as-is if the "name" of the "flatpickr-library" library (line 73) is changed from flatpickr/flatpickr to flatpickr-library/flatpickr-library)
After making this file change, updating the "timepicker" module resolves the composer blocking errors.
Note: I can provide a patch/MR with this change if that would be helpful.
Issue fork timepicker-3529491
Show commands
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 #7
kmitch commentedJust a quick update -- I've now created an MR that resolves this issue (at least for the 3.0.4 tag/branch), MR!31
I'm not sure if I did that correctly, and my initial attempt (MR!30) was really botched, so I tried to hide that branch/merge-request.
Sorry if I did this in the wrong way!
Comment #9
danrodThank you @kmitch for pointing this out !
I'll look into this now.
Comment #10
danrodComment #12
danrodTested the MR and works as expected, I'll merge it to the 3.0.x branch and create a tagged release shortly, thanks for pointing this out @kmitch !
Comment #13
danrodComment #14
danrodI created a new release that fixes this issue with the library: https://www.drupal.org/project/timepicker/releases/3.0.5
Thanks again.
Comment #15
danrodComment #16
kmitch commentedThanks for dealing with this so quickly, @danrod !!!
I've tested v3.0.5 and updated our sites to use v3.0.5 and everything looks great on our end.
Thanks again for responding so quickly and updating the release--we really appreciate it!