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 dev-master version using Composer #799

Closed
MaXal opened this issue Oct 23, 2017 · 17 comments
Closed

Can't install dev-master version using Composer #799

MaXal opened this issue Oct 23, 2017 · 17 comments
Labels
Milestone

Comments

@MaXal
Copy link

MaXal commented Oct 23, 2017

I have the following composer.json:

{
  "require-dev": {
    "phing/phing" : "dev-master"
  }
}

Running composer install I get:
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for phing/phing dev-master -> satisfiable by phing/phing[dev-master].
    - phing/phing dev-master requires phpdocumentor/parallel master@dev -> no matching package found.

I believe the reason is the following commit: 9753291

@siad007
Copy link
Member

siad007 commented Oct 23, 2017

hi @MaXal can you please try adding following to your composer.json - try again and post the result here again please?

    "repositories": [
        {
            "type":"package",
            "package": {
                "name": "phpDocumentor/Parallel",
                "version":"master",
                "source": {
                    "url": "https://github.com/phpDocumentor/Parallel.git",
                    "type": "git",
                    "reference":"master"
                }
            }
        }
    ],
    "require-dev": {
        "phpDocumentor/Parallel": "master@dev",
        "phing/phing" : "dev-master"

@mwierzbi
Copy link

nope. after added repository there is an error when composer tries to generate autoload:

Generating autoload files

                                                                                                                  
  [RuntimeException]                                                                                              
  Could not scan for classes inside "/home/test/vendor/phing/phing/vendor/phpDocumentor/Paralle  
  l" which does not appear to be a file nor a folder

I think this line is a problem:
https://github.com/phingofficial/phing/blob/master/composer.json#L68

@MaXal
Copy link
Author

MaXal commented Oct 26, 2017

@siad007 I get the same error as @mwierzbi and to be honest I believe there should be no need to add additional dependency to the client composer.json anyway since it defeat the purpose of Composer.

@siad007
Copy link
Member

siad007 commented Oct 26, 2017

@mwierzbi @MaXal I will do a PR on the phpDocumentor/Parallel repo for composer support.

@siad007 siad007 added defect and removed feedback labels Oct 26, 2017
@mrook
Copy link
Member

mrook commented Oct 26, 2017 via email

@siad007
Copy link
Member

siad007 commented Oct 26, 2017

Let us revert the change until phpDocumentor/Parallel will be served by composer. Thx @mrook

@MaXal
Copy link
Author

MaXal commented Nov 24, 2017

@siad007 Any news on the issue?

@mrook
Copy link
Member

mrook commented Nov 26, 2017

@MaXal #800 was just merged, can you test & verify that that solves it?

@MaXal
Copy link
Author

MaXal commented Nov 27, 2017

@mrook Having the following composer.json:

{
  "name": "vendor_name/package_name",
  "description": "description_text",
  "minimum-stability": "stable",
  "license": "proprietary",
  "authors": [
    {
      "name": "author's name",
      "email": "email@example.com"
    }
  ],
  "require": {
    "phing/phing": "dev-master"
  }
}

I still get:

composer install --no-interaction --ansi
 /usr/local/bin/composer install --no-interaction --ansi
 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 phing/phing dev-master -> satisfiable by phing/phing[dev-master].
     - phing/phing dev-master requires phpdocumentor/parallel master@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.
 Failed to install packages for  ./composer.json.

@siad007
Copy link
Member

siad007 commented Nov 28, 2017

@MaXal maybe a cache issue? Did you try a composer clearcache before?

@MaXal
Copy link
Author

MaXal commented Nov 28, 2017

@siad007 I've just tried. The behavior is the same. We also run composer install each night on clean build agents and they continue to fail since your initial change.

@siad007
Copy link
Member

siad007 commented Nov 28, 2017

@MaXal as you said there is still a problem with your kind of setup. Would you mind posting more info on your setup then? I mean since there is no issue on travis building a fresh version on ubuntu - there is no failure as well on windows either on the normal cli as on cygwin. Maybe there is a os which should be tested more intensive.
So my questions:

  1. which os you are using
  2. are the vendor folders for the parallel package are missing? If not please post the path.

@MaXal
Copy link
Author

MaXal commented Dec 7, 2017

@siad007 Could you please create a single file in the empty folder:

{
  "name": "vendor_name/package_name",
  "description": "description_text",
  "minimum-stability": "dev",
  "license": "proprietary",
  "authors": [
    {
      "name": "author's name",
      "email": "email@example.com"
    }
  ],
  "require": {
    "phing/phing": "dev-master"
  }
}

and run composer install from there?

As you can see there is no phpdocumentor/parallel package info on packagist: https://packagist.org/?q=phpdocumentor%2Fparallel&p=0

Execution of composer require --dev phpdocumentor/parallel leads to:

[InvalidArgumentException]
  Could not find a matching version of package phpdocumentor/parallel. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).

I'm using macOS but as I said the issue is reproducible on clean Ubuntu agents as well.

@melbings
Copy link

melbings commented Dec 9, 2017

@siad007 I have the same problem as @MaXal, even on a fresh install, given the recommended way of installing phing:

{
    "require": {
    	"phing/phing": "3.0.x-dev"
    }
}

Calling composer install results in:

Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for phing/phing 3.0.x-dev -> satisfiable by phing/phing[3.0.x-dev].
    - phing/phing 3.0.x-dev requires phpdocumentor/parallel master@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.

Please advise, thank you.

@mrook
Copy link
Member

mrook commented Dec 11, 2017

Should be resolved by #815 - can someone verify that?

@melbings
Copy link

@mrook @siad007 Works! Thanks a lot!

@mrook mrook added this to the 3.0 milestone Dec 11, 2017
@mrook
Copy link
Member

mrook commented Dec 11, 2017

Excellent! Thanks for the feedback 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants