PHP Warning: Constant already defined
Opened this issue · 3 comments
mbrodala commented
Invoking dep
yields a PHP warning:
$ dep --help
PHP Warning: Constant already defined in /.../vendor/deployer/dist/dep on line 5
Warning: Constant already defined in /.../vendor/deployer/dist/dep on line 5
Description:
List commands
Usage:
...
This issue does not occur with deployer/deployer
.
Environment:
$ php --version
PHP 8.0.14 (cli) (built: Dec 20 2021 21:22:57) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.14, Copyright (c) Zend Technologies
with Zend OPcache v8.0.14, Copyright (c), by Zend Technologies
antonmedv commented
I believe it’s due to autolocal install detection, it was deleted in master, please verify.
mbrodala commented
I tried but that failed:
$ composer req --dev deployer/dist:dev-master
./composer.json has been updated
Running composer update deployer/dist
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading deployer/dist (v7.0.0-rc.3 => dev-master 318aa3d)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Downloading deployer/dist (dev-master 318aa3d)
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
- Upgrading deployer/dist (v7.0.0-rc.3 => dev-master 318aa3d): Extracting archive
Skipped installation of bin deployer.phar for package deployer/dist: file not found in package
Any idea?
antonmedv commented
I see, dist doesn’t gave master package. We need implement this ci/cd process for master branch.