Composer library error "the given path has multiple possibilities"

Created on 14 February 2022, almost 3 years ago
Updated 26 November 2024, 26 days ago

Problem/Motivation

When I try to install the libraries using the composer merge plugin and the file composer.libraries.json, I got an error when composer tries to install the library jquery/icheck.
The error is when trying to download the zip https://github.com/fronteed/icheck/archive/1.0.2.zip:

the given path has multiple possibilities: #<Git::Ref:0x00007fe6828d4580>, #<Git::Ref:0x00007fe6828dbfd8>

I think it is because there is a branch called 1.0.2 and also a tag with the same name.

Steps to reproduce

Add the webform libraries following the documentation on https://www.drupal.org/docs/8/modules/webform/webform-frequently-asked-q...

After the composer update --lock command to download the libraries it will fail.

Proposed resolution

Avoid the ambiguity on the url, and replace https://github.com/fronteed/icheck/archive/1.0.2.zip to https://github.com/dargullin/icheck/archive/refs/tags/1.0.2.zip

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇪🇸Spain eduardo morales alberti Spain, 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024