opdavies / oliverdavies.uk-old-sculpin

https://www.oliverdavies.uk
0 stars 0 forks source link

Installation fails on missing packages. #25

Closed ndubbaka closed 8 years ago

ndubbaka commented 8 years ago

I am trying to make bundles work in my project and tried to test your project. after seeing your reply to my tweet https://twitter.com/TechNikh/status/732304114416111616 I have cloned your project & I ran composer install I get this error

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sculpin/sculpin-theme-composer-plugin v1.0.0 -> satisfiable by sculpin/sculpin-theme-composer-plugin[v1.0.0].
    - sculpin/sculpin-theme-composer-plugin v1.0.0 requires composer-plugin-api 1.0.0 -> no matching package found.
  Problem 2
    - sculpin/sculpin-theme-composer-plugin v1.0.0 requires composer-plugin-api 1.0.0 -> no matching package found.
    - sculpin/sculpin dev-master requires sculpin/sculpin-theme-composer-plugin 1.0.*@dev -> satisfiable by sculpin/sculpin-theme-composer-plugin[v1.0.0].
    - Installation request for sculpin/sculpin dev-master -> satisfiable by sculpin/sculpin[dev-master].

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.
ndubbaka commented 8 years ago

$ composer -V Composer version 1.1.0 2016-05-10 15:21:19

ndubbaka commented 8 years ago

related to https://github.com/composer/composer/issues/2324 I believe

ndubbaka commented 8 years ago

This worked https://github.com/magento-hackathon/magento-composer-installer/commit/9f8193533a1749f06e6ae9f2c629591f0bee68c5

"require": {
        "composer-plugin-api": "*",
        "sculpin/sculpin": "dev-master#c4f0814",
        "tsphethean/sculpin-related-posts-bundle": "~0.1.0",
        "behat/behat": "2.5.*@stable",
        "behat/mink": "1.5.*@stable",
        "behat/mink-extension": "*",
        "behat/mink-goutte-driver": "*",
        "opdavies/sculpin-content-generator-bundle": "@stable",
        "opdavies/sculpin-gist-embed-bundle": "dev-master"
    },
ndubbaka commented 8 years ago

Now it doesn't complain about missing bundles.

$ ./vendor/bin/sculpin generate --watch --server
Detected new or updated files
Generating: 100% (141 sources / 0.08 seconds)
Converting: 100% (396 sources / 4.60 seconds)
Formatting: 100% (396 sources / 3.26 seconds)
Processing completed in 8.68 seconds
Starting Sculpin server for the dev environment with debug true
Development server is running at http://localhost:8000
Quit the server with CONTROL-C.
opdavies commented 8 years ago

Thanks.

Confirmed with Composer 1.1.1 and a fresh clone of the site repo.

I was using a 1.2-dev version which was working, but it should work with ~1.1 too as that's the stable version.

opdavies commented 8 years ago

Adding "composer-plugin-api": "*", and running composer update fixes the problem.

Thanks!

opdavies commented 8 years ago

Yay, commit attributed correctly. :)

ndubbaka commented 8 years ago

Thanks Oliver :)