-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Update Box to the latest stable release (3.1.0) #757
Conversation
- Update Box to the latest stable release (3.1.0) - Remove redundant settings - Rename `box.json` to `box.json.dist` and add `box.json` to the ignored files to allow one to tweak the Box settings locally easily - Tweak the Box compilation script to make it more resilient in case of failure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
composer update | ||
|
||
php box.phar compile -vv | ||
|
||
composer config --unset platform | ||
trap restorePlatform exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This trap should be before running compile
, otherwise it has basically no effect here at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha indeed :/
./download-box.sh | ||
|
||
function restorePlatform { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this is a rare signature for bash functions IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdym?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually bash functions are written as such:
functionName() {
body
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, it's been a while since I've done some bash so I just went with whatever though was correct and my IDE didn't complain either... Can be renamed I guess
# lock PHP to minimum allowed version | ||
composer config platform.php 7.1.0 | ||
cp composer.lock composer.lock.back || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ".back"? Standard extension for backups is ".bak" or more preferably ".orig".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¯_(ツ)_/¯
box.json
tobox.json.dist
and addbox.json
to the ignored files to allow one to tweakthe Box settings locally easily