overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install via .phive/phars.xml

sitepark-veltrup opened this issue · comments

Install via .phive/phars.xml

Summary

It is not possible to install phplint via .phive/phars.xml.
Currently phplint can only be installed via phive with the --force-accept-unsigned option.

Description

Currently phplint can only be installed via phive with the --force-accept-unsigned option.
However, it is not possible to install phplint via a .phive/phars.xml like this one

<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
   <phar name="phplint" version="^9.0" copy="false" />
</phive>

In the XML, force-accept-unsigned cannot be set.

A solution would be to make the .asc available again. See also #103

phive install overtrue/phplint --force-accept-unsigned

creates an entry in .phive/phars.xml

Also, take care about phars.xml contents and phar name.

When I put a <repo>/.phive/phars.xml file as follow :

<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
    <phar name="overtrue/phplint" version="^9.0" copy="false" />
</phive>

And run phive install --force-accept-unsigned, it will works !

@sitepark-veltrup BTW, thanks for reporting, it allowed to clarify/enhance documentation.