Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install from depency #16

Closed
xmon opened this issue Mar 11, 2016 · 1 comment
Closed

can't install from depency #16

xmon opened this issue Mar 11, 2016 · 1 comment
Assignees
Labels

Comments

@xmon
Copy link

xmon commented Mar 11, 2016

I'm trying to install a fork, which require this proyect.

my fork is xmon/VideoBundle

and this is my bundle composer.json

{
    "name": "xmon/video-bundle",
    "type": "symfony-bundle",
    "description": "Video Bundle adding functiunalities to Sonata media bundle:<br>=> a video provider- handle video upload- re-encode uploaded video to th defined formats   - thumbs generation",
    "keywords": ["video", "bundle", "media", "ffmpeg", "sonata"],
    "homepage": "http://github.com/xmon/VideoBundle",
    "license": "MIT",
    "authors": [
        {
            "name": "Jason Moore",
            "email": "jmoore@useallfive.com"
        }
    ],
    "require": {
        "php": ">=5.4",
        "sonata-project/media-bundle": "@stable",
        "phansys/getid3": "~2.1@dev",
        "php-ffmpeg/php-ffmpeg": "~0.5"
    },
    "require-dev": {
        "symfony/framework-bundle": ">=2.1"
    },
    "autoload": {
        "psr-0": { "Maesbox\\VideoBundle": "" }
    },
    "minimum-stability": "dev",
    "target-dir": "Maesbox/VideoBundle"
}

this is the response trying to install:

$ php composer.phar require xmon/video-bundle                                                                                                                            
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for xmon/video-bundle ^0.0.2 -> satisfiable by xmon/video-bundle[v0.0.2].
    - xmon/video-bundle v0.0.2 requires phansys/getid3 ~2.1@dev -> no matching package found.

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.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

If I try to install your package directly, everything is OK

$ php composer.phar require phansys/getid3:~2.1@dev

any idea to solve it?

thanks in advance

@phansys phansys self-assigned this May 10, 2016
@phansys
Copy link
Owner

phansys commented May 10, 2016

Sorry for the delay @xmon. Please note that stability flags only works at the root composer.json (the file which is in the same directory where you're running the command): https://getcomposer.org/doc/04-schema.md#package-links. So if you want to install this package there, you must whitelist it at require section of that file.

@phansys phansys closed this as completed May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants