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

PHP Warning: Constant already defined #17

Open

Description

@mbrodala

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

Activity

  1. antonmedv commented on Jan 12, 2022

    @antonmedv
    Member

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

  2. mbrodala commented on Jan 12, 2022

    @mbrodala
    Author

    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?

  3. antonmedv commented on Jan 12, 2022

    @antonmedv
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions