mozart icon indicating copy to clipboard operation
mozart copied to clipboard

"directory does not exist" with `crewlabs/unsplash`

Open BrianHenryIE opened this issue 4 years ago • 0 comments

composer require crewlabs/unsplash results in the error:

In Finder.php line 589:
                                                                               
  The "/Users/BrianHenryIE/Sites/mozart-crewlabsunsplash/vendor/unsplash/unsplash/src/" directory does not exist.                                         

Example:

{
  "require": {
    "crewlabs/unsplash": "^2.2"
  },
  "require-dev": {
    "coenjacobs/mozart": "dev-master"
  },
  "extra": {
    "mozart": {
      "dep_namespace": "Mozart_UnSplash\\",
      "dep_directory": "/mozart/dep/",
      "classmap_prefix": "Mozart_UnSplash_",
      "classmap_directory": "/mozart/classmap/",
      "delete_vendor_directories": false
    }
  }
}

Require crewlabs/unsplash results in the directory vendor/crewlabs/unsplash but the name inside that folder's composer.json is unsplash/unsplash.

So there seems to be some mismatch where maybe Mozart needs to use composer.lock rather than composer.json.

BrianHenryIE avatar Dec 07 '20 06:12 BrianHenryIE