composer-localdev-plugin icon indicating copy to clipboard operation
composer-localdev-plugin copied to clipboard

Cannot set it up locally

Open phikhi opened this issue 6 years ago • 1 comments

I can't make the plugin to work properly.

I have a main application, that requires a separate package which has for the moment only one master branch (no tags).

Here is my config :

~/.composer/composer.json

{
    "require": {
        "gossi/composer-localdev-plugin": "dev-master"
    }
}

~/.composer/config.json

{
    "config": {
        "localdev": {
	    "": ["/Users/username/Sites"],
            "mynamespace": "/Users/username/Sites",
            "mynamespace/mypackage": "/Users/username/Sites/mypackage"
        }
    }
}

/Users/username/Sites/myapplication/composer.json

{
    "require": {
        "mynamespace/mypackage": "dev-master"
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
}

When I run composer update in myapplication I get this message :

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package mynamespace/mypackage 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.

I tried changing config.preferred-install to source, and prefer-stable to false. But I still get the same error message.

I don't know what I am doing wrong here. Can someone please help me ? ;)

phikhi avatar Feb 25 '19 08:02 phikhi

I have the same issue. I guess this plugin is no longer maintained and is not compatible with the current versions of Composer.

slightlyfaulty avatar May 19 '19 21:05 slightlyfaulty