-
Notifications
You must be signed in to change notification settings - Fork 19
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
Initial implementation of bin/pie download #11
Conversation
… for Unixy platforms
a7bb86a
to
3feb4b8
Compare
3feb4b8
to
f757ee9
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
b5987c2
to
749eb05
Compare
9e261da
to
9629815
Compare
…eeded in the test
src/Platform/TargetPhp/ResolveTargetPhpToPlatformRepository.php
Outdated
Show resolved
Hide resolved
(moved this comment content to the PR description) |
I am trying this out. I have been deliberately nitpicky here. User Interfacebin/pieIt seems the UI is not aware of the size of my terminal window, and it does not wrap text appropriately — this is particularly annoying with the help output. bin/pie help downloadShows bin/pie download xdebug/xdebugOutputs:
I like how it says what the target installation is, and with which version. If I switch my path around so that The second I think the bin/pie download xdebug/xdebug --with-php-config /usr/local/php/8.3dev/bin/php-config --with-php-path=/usr/local/php/8.2dev/bin/phpI deliberately picked two different PHP versions for bin/pie download xdebug/xdebug:3.4.0alpha1Outputs:
(Yes, with the It does not tell me why it can't find it, as there is certainly a release on packagist. bin/pie download xdebug/xdebug:3.4.0alpha1@alphaWorks, yay! It downloads it to bin/pie download xdebug/xdebug:3.4.0alpha1@betaAlso works... which is odd, as it's an CompilingCompiling works too, by doing:
|
Thanks @derickr for your comments, very much appreciated!
I have created issue #14 to improve this
Improved the wording of this in 1188579
I've collapsed this onto one line in 2298ae7, some examples:
Hopefully this is better?
Strictly speaking, we don't need both, no. We need at least
I think due to your terminal width; will be addressed in #14 hopefully.
The reason for this is the stability flags, but I agree this is not immediately clear. I've made #15 to improve this.
This is actually the path inside the zip that GitHub gives from the release, so we don't control that part. That said, we could add additional step to move it. Also, we may want to consider using a predictable path, e.g. |
I will merge this on or shortly after 1st July if there is no further show-stopping feedback! Thanks 👍 |
Fixes #2
I will merge this on or shortly after 1st July if there is no further show-stopping feedback
Are you an end user who would like to try this out?
Please note that this is just an initial implementation, and will only download an extension to a temporary path on your machine; it will not build or install anything just yet. That is coming soon!
If you understand, and you'd still like to help test this...
Primarily the best way to provide feedback here as an end user of PIE is to check the
download
command works on your machine! You can do that by following these steps (please adjust for your platform differences of course!)asgrim/example-pie-extension
is intentionally only compatible with PHP 8.3)git clone -b download-implementation https://github.com/asgrim/pie.git
composer install
bin/pie download asgrim/example-pie-extension
You should see something like:
Are you an extension maintainer who would like to try this out?
It's not strictly necessary to support this just yet, but if you're keen, and please note, things may change before we finally release PIE... so you do this at your own risk. Note: at the moment, you will need to make a new release - see ThePHPF/pie-design#17
composer.json
to your repo - example here https://github.com/asgrim/example-pie-extension/blob/main/composer.jsonalpha
release is fine, e.g.1.2.3-alpha.
) - note, "branches" or "commits" are not yet supported - see Add support fordev-main
anddev-main#sha
type version requests #13composer.json
automatically and understand that it is aphp-ext
orphp-ext-zend
, it should appear in https://packagist.org/extensions once addedMore details, for example for help on
composer.json
, can be read in https://github.com/ThePHPF/pie-design?tab=readme-ov-file#extension-maintainer-register-a-pie-package