jCarouselSwipe Installation

Created on 12 January 2022, about 3 years ago
Updated 12 September 2023, over 1 year ago

Problem/Motivation

Installation of jcarouselSwipe library fails in Composer [2] due to upper case characters - as described in the readme.txt

 [RuntimeException]
  require.snake-345/jcarouselSwipe is invalid, it should not contain uppercase characters. Please use snake-3
  45/jcarouselswipe instead.

Proposed resolution

readme.txt installation guide needs to be altered to change the upper case S in jcarouselSwipe to lower case s jcarouselswipe:

  "repositories": [
    {
      "type": "package",
      "package": {
        "name": "jsor/jcarousel",
        "version": "0.3.8",
        "type": "drupal-library",
        "dist": {
          "url": "https://github.com/jsor/jcarousel/archive/0.3.8.zip",
          "type": "zip"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "snake-345/jcarouselswipe",
        "version": "0.3.7",
        "type": "drupal-library",
        "dist": {
          "url": "https://github.com/snake-345/jcarouselSwipe/archive/0.3.7.zip",
          "type": "zip"
        }
      }
    }
  ]

...

After that, run:

  $ composer require jsor/jcarousel
  $ composer require snake-345/jcarouselswipe
  $ composer require drupal/jcarousel

Not a big deal. Will add a patch in a bit

🐛 Bug report
Status

RTBC

Version

6.0

Component

Documentation

Created by

🇬🇧United Kingdom robcarr Perthshire, Scotland

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

Comments & Activities

Not all content is available!

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

  • 🇬🇧United Kingdom robbm

    Should:

      "extra": {
          "installer-paths": {
              "libraries/{$name}": ["type:drupal-library"]
          }
      }

    also be updated to

      "extra": {
          "installer-paths": {
              "web/libraries/{$name}": ["type:drupal-library"]
          }
      }

    ?

    That's what other libraries seem to require (and therefore what's already in my composer.json.)

Production build 0.71.5 2024