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

  1. Install or update the timepicker module to v3.0.4
  2. Run a composer command on a different module, e.g. composer update drupal/token_views_filter --with-all-dependencies --dry-run
  3. 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

Command icon 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

kmitch created an issue. See original summary.

kmitch changed the visibility of the branch 3529491-flatpickr-library-reference to hidden.

kmitch’s picture

Just 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!

kmitch changed the visibility of the branch 3529491-flatpickr-library-reference to hidden.

danrod’s picture

Thank you @kmitch for pointing this out !

I'll look into this now.

danrod’s picture

Status: Active » Needs review

danrod’s picture

Tested 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 !

danrod’s picture

Status: Needs review » Reviewed & tested by the community
danrod’s picture

I created a new release that fixes this issue with the library: https://www.drupal.org/project/timepicker/releases/3.0.5

Thanks again.

danrod’s picture

Status: Reviewed & tested by the community » Fixed
kmitch’s picture

Thanks 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.