-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add support to force extracting archives #16
base: 1.x
Are you sure you want to change the base?
Conversation
Added new option $ phar-composer help build Usage: build [-x|--force-extract] [path] [target] Arguments: path Path to project directory or composer.json (default: ".") target Path to write phar output to (defaults to project name) Options: --force-extract (-x) Enforce extracting the phar to a temporary directory. ... |
Thanks for this PR! 👍 The changes look good to me, and I'd like to see this included soon :) Once we support this option, we should probably also consider to add a config key ( Also, would you care to add a note to the README.md and CHANGELOG.md? Thanks! |
Hi, pull request updated based on your comments, please review :) |
Really great! 👍 The changes looks really good, and I'm perfectly happy with merging them as-is. One minor thing I'm concerned with is (again.. sigh) naming :) Personally, I'm a bit undecided about the name "force-extract". It certainly describes what is does, but it doesn't really convey when to use this option. Can we come up with a better name? Other than that, your changes look really good. Thanks for your input! |
I agree, how about "self-extracting" name? e.g.:
|
Way better! This is actually a tricky one, given that the stub file always includes the Now what this option does is that is always enforces to use the So in fact each phar is always "self-extracting". So far I'm also having some trouble finding the right wording either, which highlights this subtle nuance :) |
Disregard my previous comment :)
Unless we can come up with a better name, I'm okay with it. I'd just like to merge this soon. Would you care to update the docs accordingly? |
After reading your comment, I understand that "self-extracting" name can also be confusing... Maybe an option to control the use of the php-box Extract class?
|
Your changeset looks good to and I'd love to finally get this in! :) How about an |
Ping @smartinm, is there anything I can help you with? :) |
All of the work in this PR is now in PR #83, with the conflicts resolved. |
Refs #10