Skip to content

CMA phpbrew installation #79

@aleksandrsm

Description

@aleksandrsm

Describe the bug

If CMA, when being installed for the first time, is interrupted during phpbrew setup(for any reason), it will result in non-working phpbrew + it will not recover on startup.

Environment

Ubuntu

Steps to reproduce

  1. Fresh npm run installation on a system on no phpbrew
  2. Pressing ctrl+c in the middle of brew install will do it. This leaves the system with half-installed brew; e.g. no specific php version installed.
  3. After that, on re-run npm will not attempt to install specific phpbrew versions despite them not being present.

Not confirmed - but this might happen if some Y prompt are not triggered during the install (e.g. for bashrc?).

Manually removing phphbrew from the system entirely resolves the issue.

Expected behavior

Hard to say what is expected in this case, if CMA could somehow detect non-functional brew and re-install it, that would help.
If not, then perhaps just a text message to consider reinstalling phpbrew, if there's issues with it during startup?

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