-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phive > Upgrade all phar-download to phive-install #369
Conversation
d7a872e
to
2f24a11
Compare
Can we remove the version where possible? |
Some installations fail due to the question about key import:
|
I noticed. Does that mean we should always use |
I can remove the version constraint but IDK if there are any compatibility issued. Do you know if Point is, I'm not aware of the limitations each tool has and/or if that version specification was put there on purpose to cover a BC break or if it was there because there was no URL with "latest" available. |
Middle-ground could be |
2f24a11
to
b72aa93
Compare
This was caused by improper use of |
Apparently the topic of auto-accept isn't going to be a fun one: phar-io/phive#69 ... either we |
Is it possible to import keys beforehand in an automated way? |
@jakzal Any automated import is viewed as a security risk. |
d47102a
to
5f8d110
Compare
In order to test the rest of the implementation details I've defaulted the implementation to accepting unsigned packages. |
c79d447
to
c9aeae5
Compare
@jakzal the current failure is a permission denied on |
c9aeae5
to
96364fa
Compare
It seems that box is downloaded to the box directory:
By the way, you can install tools locally for easier debugging: mkdir local
COMPOSER_HOME=$(pwd)/local/composer PATH=$(pwd)"/local:"$(pwd)"/local/composer/vendor/bin:$PATH" bin/toolbox.php install --target-dir ./local --tag pre-installation you'll then see that box is a directory: ls local/
_tmp_wrk/ box/ box-legacy* composer/ gpg/ http-cache/ phars/ phive* registry.xml |
@jakzal the target parameter of We have at least 3 instances where we artificially alter the tool name (ex.: phpunit versions). |
We need to think how to work around it. What's the difference between Perhaps we could install all phive tools to their own directories grouped under phive |
By default when you install something it will symlink it into the current folder under the short (versionless) name. If you specify We can work around it by allowing it to generate a symlink somewhere else (in a "clean" directory such as |
853860f
to
c7c43a5
Compare
This just dawned on me: each IDK how I missed this, this was very obvious. |
4515df8
to
d75ef54
Compare
Starts looking good 👍 Builds are currently failing due to an issue unrelated to this PR: deprecated-packages/symplify#3056 |
671ae21
to
d0dec93
Compare
Did you disable ecs? That allowed the tests to continue up until they hit Now everything works. Yay! |
No, they seem to have fixed the phar :) |
@mihai-stancu I will make a new toolbox and phpqa releases. This will give you some time to finalise this PR. Once ready, we'll merge it and release toolbox. |
d0dec93
to
66a7939
Compare
Status:
|
@mihai-stancu can you rebase again please? |
Also, seems we can't be using psalm as phar to use psalm plugins (see #252). Can you revert it back please? |
I pushed 994f20a to your branch. This is an idea to work around the ugly As a result, we don't use the "bin part" of the "command": {
"phive-install": {
"alias": "dephpend",
"bin": "%target-dir%/dephpend",
"sig": "76835C9464877BDD"
}
} How about we turn it into a "command": {
"phive-install": {
"alias": "dephpend",
"target": "%target-dir%",
"sig": "76835C9464877BDD"
}
} |
0a32fe1
to
5dd8b77
Compare
Rebased. Checks passed. |
Outstanding work! Thank you @mihai-stancu 🍻 |
🍻 |
Based on #354 I've migrated all the
phar-download
commands tophive-install
commands.Some didn't work tho, idk why.
Note: if the tool was installed with a specific version in the url, then I retained the version specification in the install command (
alias@^version
). Most tools likely didn't have alatest
url setup so the version is probably unnecessary there (it's not a BC break) but I can't know that.