Skip to content

Reproducible installation method with PHAR files?  #3815

Closed
@chrissound

Description

@chrissound

Describe the bug

Not really a bug... Installation methods do not provide a reproducible installation. I am also not sure how to build the PHAR files - which would also be a possible solution.

Basically about this:

# Or download using wget
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar

These files would likely point to the latest version which could potentially breaking something in future.

I've tried to clone down the repo and run the bin/phpcs file however that requires the whole project present:

~/.local/docker-cicd-build-env/bin/phpcs
PHP Warning:  include_once(PHP/CodeSniffer/autoload.php): failed to open stream: No such file or directory in /root/.local/docker-cicd-build-env/bin/phpcs on line 14

Is there a way I can download or build a PHAR with a specific version?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions