Skip to content
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

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

theofidry
Copy link
Contributor

Q A
Type improvement
BC Break no
Fixed issues N/A
  • 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

- 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
Copy link
Member

@jwage jwage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jwage jwage merged commit 170f119 into doctrine:master Oct 8, 2018
composer update

php box.phar compile -vv

composer config --unset platform
trap restorePlatform exit
Copy link
Contributor

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.

Copy link
Contributor Author

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 {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym?

Copy link
Contributor

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
}

Copy link
Contributor Author

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
Copy link
Contributor

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".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¯_(ツ)_/¯

@theofidry theofidry deleted the feature/box branch October 8, 2018 19:43
@jwage jwage added this to the 2.0.0-beta2 milestone Nov 5, 2018
@jwage jwage modified the milestones: 2.0.0-beta2, 2.0.0-rc2, 2.0.0 Jan 3, 2019
@jwage jwage changed the title Bump Box Update Box to the latest stable release (3.1.0) Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants