Giter VIP home page Giter VIP logo

Comments (6)

theofidry avatar theofidry commented on September 24, 2024

Maybe with -vvv or --debug? Also which version of composer are you using?

from composer-bin-plugin.

TerrePorter avatar TerrePorter commented on September 24, 2024

Here is the information.

$ composer -V
Composer version 1.9.2 2020-01-14 16:30:31

I updated it to the latest

$ composer -V
Composer version 1.10.1 2020-03-13 20:34:27

using latest version

$ composer require --dev bamarni/composer-bin-plugin -vvv
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/vagrant/.composer): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/.composer): git describe --exact-match --tags
Executing command (/home/vagrant/.composer): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/.composer): hg branch
Executing command (/home/vagrant/.composer): fossil branch list
Executing command (/home/vagrant/.composer): fossil tag list
Executing command (/home/vagrant/.composer): svn info --xml
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Hirak\Prestissimo\Plugin
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
    1/1:        http://repo.packagist.org/p/provider-latest$855d97f1787e608a2c01eaa6a60891f2e00206983e8db3d5770517ddecea8ad4.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Running 1.10.1 (2020-03-13 20:34:27) with PHP 7.4.1 on Linux / 4.15.0-74-generic
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Executing command (/home/vagrant/.composer): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/.composer): git describe --exact-match --tags
Executing command (/home/vagrant/.composer): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/.composer): hg branch
Executing command (/home/vagrant/.composer): fossil branch list
Executing command (/home/vagrant/.composer): fossil tag list
Executing command (/home/vagrant/.composer): svn info --xml
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Hirak\Prestissimo\Plugin_composer_tmp0
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
    1/1:        http://repo.packagist.org/p/provider-latest$855d97f1787e608a2c01eaa6a60891f2e00206983e8db3d5770517ddecea8ad4.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Reading ./composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file ./composer.json
Executing command (/home/vagrant/Code/_play/ttttmp): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/Code/_play/ttttmp): git describe --exact-match --tags
Executing command (/home/vagrant/Code/_play/ttttmp): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/Code/_play/ttttmp): hg branch
Executing command (/home/vagrant/Code/_play/ttttmp): fossil branch list
Executing command (/home/vagrant/Code/_play/ttttmp): fossil tag list
Executing command (/home/vagrant/Code/_play/ttttmp): svn info --xml
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Hirak\Prestissimo\Plugin_composer_tmp1
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
    1/1:        http://repo.packagist.org/p/provider-latest$855d97f1787e608a2c01eaa6a60891f2e00206983e8db3d5770517ddecea8ad4.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-10.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2020-01.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json from cache
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json into cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/provider-bamarni$composer-bin-plugin.json from cache
Using version ^1.3 for bamarni/composer-bin-plugin
./composer.json has been created
Reading ./composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file ./composer.json
Executing command (/home/vagrant/Code/_play/ttttmp): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/Code/_play/ttttmp): git describe --exact-match --tags
Executing command (/home/vagrant/Code/_play/ttttmp): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/Code/_play/ttttmp): hg branch
Executing command (/home/vagrant/Code/_play/ttttmp): fossil branch list
Executing command (/home/vagrant/Code/_play/ttttmp): fossil tag list
Executing command (/home/vagrant/Code/_play/ttttmp): svn info --xml
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Hirak\Prestissimo\Plugin_composer_tmp2
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Loading composer repositories with package information
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-10.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2020-01.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/provider-bamarni$composer-bin-plugin.json from cache
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Analyzed 82 packages to resolve dependencies
Analyzed 78 rules to resolve dependencies
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.000 seconds
Package operations: 1 install, 0 updates, 0 removals
Installs: bamarni/composer-bin-plugin:v1.3.0
  - Installing bamarni/composer-bin-plugin (v1.3.0): Reading /home/vagrant/.composer/cache/files/bamarni/composer-bin-plugin/8a7cd34f4251920cc9aa9f97728dbee1d410c361.zip from cache
Loading from cache
 Extracting archiveExecuting command (CWD): unzip -qq  '/home/vagrant/Code/_play/ttttmp/vendor/bamarni/composer-bin-plugin/01e360905eaa45df6fc37314d2a1b5b7' -d '/home/vagrant/Code/_play/ttttmp/vendor/composer/4f9e1104'
Plugin installation failed, rolling back
  - Removing bamarni/composer-bin-plugin (v1.3.0)

Installation failed, deleting ./composer.json.


  [ErrorException]
  include(/home/vagrant/Code/_play/ttttmp/vendor/bamarni/composer-bin-plugin/src/Plugin.php): failed to open stream: No such file or directory


Exception trace:
 () at phar:///usr/local/bin/composer/vendor/composer/ClassLoader.php:444
 Composer\Util\ErrorHandler::handle() at phar:///usr/local/bin/composer/vendor/composer/ClassLoader.php:444
 include() at phar:///usr/local/bin/composer/vendor/composer/ClassLoader.php:444
 Composer\Autoload\includeFile() at phar:///usr/local/bin/composer/vendor/composer/ClassLoader.php:322
 Composer\Autoload\ClassLoader->loadClass() at n/a:n/a
 spl_autoload_call() at n/a:n/a
 class_exists() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:204
 Composer\Plugin\PluginManager->registerPackage() at phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:62
 Composer\Installer\PluginInstaller->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:173
 Composer\Installer\InstallationManager->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:160
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:611
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:232
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:248
 Composer\Command\RequireCommand->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:205
 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:281
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:113
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:61
 require() at /usr/local/bin/composer:24

require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

from composer-bin-plugin.

theofidry avatar theofidry commented on September 24, 2024

For some reasons it appears the extract of the code fails :( I honestly have no idea why, but I would report that on the Composer repo

from composer-bin-plugin.

TerrePorter avatar TerrePorter commented on September 24, 2024

Ok, will do. Thanks

from composer-bin-plugin.

dhampik avatar dhampik commented on September 24, 2024

We've got the same issue on vagrant under windows. Usually this is caused by lack of symlinks support on windows.

from composer-bin-plugin.

dhampik avatar dhampik commented on September 24, 2024

I've found a workaround. One can add this configuration to composer.json and force installation from source (git) from this specific package. In this case failing unzip command will not be executed:

    "config": {
        "preferred-install": {
            "bamarni/composer-bin-plugin": "source",
            "*": "dist"
        }
    }

Seems like the issue is that unzipping dist file from packagist puts the contents into the wrong directory. Not sure if it's composer or packagist issue or maybe this library is incorrectly published to packagist?

from composer-bin-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.