Comments (6)
Maybe with -vvv
or --debug
? Also which version of composer are you using?
from composer-bin-plugin.
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.
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.
Ok, will do. Thanks
from composer-bin-plugin.
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.
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)
- Call to undefined method when updating to 1.7.0 HOT 2
- Plugin fails to work with Composer < 2.3
- Call to undefined method during (and only during) the update from 1.5.0 to 1.7.0 HOT 2
- Plugin (still) fails to work with Composer < 2.3 HOT 1
- Compatibility with `Composer\InstalledVersions` API HOT 4
- Can outdated command be forwarded as well? HOT 5
- Inherit from github-oauth main composer.json HOT 2
- Create autoloader that include all package namespaces HOT 2
- Reuse existing packages via symlink HOT 2
- Detect installation via this plugin HOT 10
- Warning appears if multiple namespaces contain the same custom Composer script name HOT 2
- `composer update --lock` invokes `composer update` HOT 2
- Composer plugin support in namespaces? HOT 6
- Composer cache dir seems not be respected HOT 3
- No-Dev installation fails when defined as dev dependency HOT 2
- Dev-Dependencies installed when using --no-dev option HOT 1
- Doesn't work with ergebnis/composer-normalize HOT 6
- Drop support for PHP 5.x HOT 1
- Forward command not executed on first install
- Error with composer when using this plugin and it's allowed in `composer.json` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composer-bin-plugin.