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

Cannot forward command with --dev option on Composer package installation #166

Open
llaville opened this issue Dec 8, 2024 · 0 comments

Comments

@llaville
Copy link

llaville commented Dec 8, 2024

Hello,

Today, while I'm in way to publish a new version (9.5.5) of https://github.com/overtrue/phplint, I wanted to check a full global installation with these commands

composer global require --dev bamarni/composer-bin-plugin
composer global require overtrue/phplint ^9.5 --dev -vvv

I realized that only require package list are installed, and not require-dev package list.
And of course none of packages declared into the vendor-bin directory.

Is there a pre-requisite to do so, or is it a bug ?

Composer command output in debug mode
Changed current directory to /home/devilbox/.composer
Running 2.8.3 (2024-11-17 13:13:04) with PHP 8.2.26 on Linux / 5.15.153.1-microsoft-standard-WSL2
Reading ./composer.json (/home/devilbox/.composer/composer.json)
Loading config file ./composer.json (/home/devilbox/.composer/composer.json)
Checked CA file /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a file.
Checked directory /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a directory.
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/devilbox/.composer): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Executing command (/home/devilbox/.composer): 'git' 'describe' '--exact-match' '--tags'
Executing command (CWD): 'git' '--version'
Executing command (/home/devilbox/.composer): 'git' 'log' '--pretty=%H' '-n1' 'HEAD' '--no-show-signature'
Executing command (/home/devilbox/.composer): 'hg' 'branch'
Executing command (/home/devilbox/.composer): 'fossil' 'branch' 'list'
Executing command (/home/devilbox/.composer): 'fossil' 'tag' 'list'
Executing command (/home/devilbox/.composer): 'svn' 'info' '--xml'
Reading /home/devilbox/.composer/vendor/composer/installed.json
Loading plugin Bamarni\Composer\Bin\BamarniBinPlugin (from bamarni/composer-bin-plugin, installed globally)
./composer.json has been updated
Unloading plugin Bamarni\Composer\Bin\BamarniBinPlugin
Reading ./composer.json (/home/devilbox/.composer/composer.json)
Loading config file ./composer.json (/home/devilbox/.composer/composer.json)
Executing command (/home/devilbox/.composer): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Executing command (/home/devilbox/.composer): 'git' 'describe' '--exact-match' '--tags'
Executing command (/home/devilbox/.composer): 'git' 'log' '--pretty=%H' '-n1' 'HEAD' '--no-show-signature'
Executing command (/home/devilbox/.composer): 'hg' 'branch'
Executing command (/home/devilbox/.composer): 'fossil' 'branch' 'list'
Executing command (/home/devilbox/.composer): 'fossil' 'tag' 'list'
Executing command (/home/devilbox/.composer): 'svn' 'info' '--xml'
Reading /home/devilbox/.composer/vendor/composer/installed.json
Loading plugin Bamarni\Composer\Bin\BamarniBinPlugin_composer_tmp0 (from bamarni/composer-bin-plugin, installed globally)
Running composer update overtrue/phplint
> command: Bamarni\Composer\Bin\BamarniBinPlugin_composer_tmp0->onCommandEvent
[bamarni-bin] Calling onCommandEvent().
[bamarni-bin] The setting "extra.bamarni-bin.bin-links" will be set to "false" from 2.x onwards. If you wish to keep it to "true", you need to set it explicitly.
[bamarni-bin] The setting "extra.bamarni-bin.forward-command" will be set to "true" from 2.x onwards. If you wish to keep it to "false", you need to set it explicitly.
Reading ./composer.lock (/home/devilbox/.composer/composer.lock)
Loading composer repositories with package information
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/packages.json from cache
Downloading https://repo.packagist.org/packages.json if modified
[304] https://repo.packagist.org/packages.json
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-overtrue~phplint.json from cache
Downloading https://repo.packagist.org/p2/overtrue/phplint.json if modified
[304] https://repo.packagist.org/p2/overtrue/phplint.json
Built pool.
Running pool optimizer.
Pool optimizer completed in 0.008 seconds
Found 170 package versions referenced in your dependency graph. 4 (2%) were optimized away.
Updating dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Analyzed 166 packages to resolve dependencies
Analyzed 201 rules to resolve dependencies
Nothing to modify in lock file
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock (/home/devilbox/.composer/composer.lock)
Nothing to install, update or remove
Generating autoload files
> post-autoload-dump: Bamarni\Composer\Bin\BamarniBinPlugin_composer_tmp0->onPostAutoloadDump
[bamarni-bin] Calling onPostAutoloadDump().
[bamarni-bin] The setting "extra.bamarni-bin.bin-links" will be set to "false" from 2.x onwards. If you wish to keep it to "true", you need to set it explicitly.
[bamarni-bin] The setting "extra.bamarni-bin.forward-command" will be set to "true" from 2.x onwards. If you wish to keep it to "false", you need to set it explicitly.
18 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-bamarni~composer-bin-plugin.json from cache
Downloading https://repo.packagist.org/p2/bamarni/composer-bin-plugin.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-overtrue~phplint.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-psr~cache.json from cache
Downloading https://repo.packagist.org/p2/psr/cache.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-psr~container.json from cache
Downloading https://repo.packagist.org/p2/psr/container.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-psr~event-dispatcher.json from cache
Downloading https://repo.packagist.org/p2/psr/event-dispatcher.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-psr~log.json from cache
Downloading https://repo.packagist.org/p2/psr/log.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~cache.json from cache
Downloading https://repo.packagist.org/p2/symfony/cache.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~cache-contracts.json from cache
Downloading https://repo.packagist.org/p2/symfony/cache-contracts.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~console.json from cache
Downloading https://repo.packagist.org/p2/symfony/console.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~deprecation-contracts.json from cache
Downloading https://repo.packagist.org/p2/symfony/deprecation-contracts.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~event-dispatcher.json from cache
Downloading https://repo.packagist.org/p2/symfony/event-dispatcher.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~event-dispatcher-contracts.json from cache
Downloading https://repo.packagist.org/p2/symfony/event-dispatcher-contracts.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~finder.json from cache
Downloading https://repo.packagist.org/p2/symfony/finder.json if modified
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~options-resolver.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~polyfill-ctype.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~polyfill-intl-grapheme.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~polyfill-intl-normalizer.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~polyfill-mbstring.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~process.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~service-contracts.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~string.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~var-exporter.json from cache
Reading /home/devilbox/.composer/cache/repo/https---repo.packagist.org/provider-symfony~yaml.json from cache
[304] https://repo.packagist.org/p2/bamarni/composer-bin-plugin.json
Downloading https://repo.packagist.org/p2/symfony/options-resolver.json if modified
[304] https://repo.packagist.org/p2/psr/cache.json
Downloading https://repo.packagist.org/p2/symfony/polyfill-ctype.json if modified
[304] https://repo.packagist.org/p2/psr/container.json
[304] https://repo.packagist.org/p2/psr/event-dispatcher.json
[304] https://repo.packagist.org/p2/psr/log.json
Downloading https://repo.packagist.org/p2/symfony/polyfill-intl-grapheme.json if modified
Downloading https://repo.packagist.org/p2/symfony/polyfill-intl-normalizer.json if modified
Downloading https://repo.packagist.org/p2/symfony/polyfill-mbstring.json if modified
[304] https://repo.packagist.org/p2/symfony/cache.json
[304] https://repo.packagist.org/p2/symfony/cache-contracts.json
[304] https://repo.packagist.org/p2/symfony/console.json
[304] https://repo.packagist.org/p2/symfony/deprecation-contracts.json
[304] https://repo.packagist.org/p2/symfony/event-dispatcher.json
Downloading https://repo.packagist.org/p2/symfony/process.json if modified
Downloading https://repo.packagist.org/p2/symfony/service-contracts.json if modified
Downloading https://repo.packagist.org/p2/symfony/string.json if modified
Downloading https://repo.packagist.org/p2/symfony/var-exporter.json if modified
Downloading https://repo.packagist.org/p2/symfony/yaml.json if modified
[304] https://repo.packagist.org/p2/symfony/event-dispatcher-contracts.json
[304] https://repo.packagist.org/p2/symfony/finder.json
[304] https://repo.packagist.org/p2/symfony/options-resolver.json
[304] https://repo.packagist.org/p2/symfony/polyfill-ctype.json
[304] https://repo.packagist.org/p2/symfony/polyfill-intl-grapheme.json
[304] https://repo.packagist.org/p2/symfony/polyfill-intl-normalizer.json
[304] https://repo.packagist.org/p2/symfony/polyfill-mbstring.json
[304] https://repo.packagist.org/p2/symfony/process.json
[304] https://repo.packagist.org/p2/symfony/service-contracts.json
[304] https://repo.packagist.org/p2/symfony/string.json
[304] https://repo.packagist.org/p2/symfony/var-exporter.json
[304] https://repo.packagist.org/p2/symfony/yaml.json
No security vulnerability advisories found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant