overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.
MIT License
984 stars 118 forks source link

Install via .phive/phars.xml #189

Closed sitepark-veltrup closed 1 year ago

sitepark-veltrup commented 1 year ago

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

sitepark-veltrup commented 1 year ago
phive install overtrue/phplint --force-accept-unsigned

creates an entry in .phive/phars.xml

llaville commented 1 year ago

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 !

llaville commented 1 year ago

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