Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

PHP Warning: Constant already defined #17

Open
mbrodala opened this issue Jan 12, 2022 · 3 comments
Open

PHP Warning: Constant already defined #17

mbrodala opened this issue Jan 12, 2022 · 3 comments

Comments

@mbrodala
Copy link

mbrodala commented Jan 12, 2022

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
Copy link
Member

I believe it’s due to autolocal install detection, it was deleted in master, please verify.

@mbrodala
Copy link
Author

mbrodala commented Jan 12, 2022

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
Copy link
Member

I see, dist doesn’t gave master package. We need implement this ci/cd process for master branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants