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

Allow overwriting config in phive.xml with phive install #75

Closed
sebastianheuer opened this issue Aug 2, 2016 · 0 comments
Closed

Allow overwriting config in phive.xml with phive install #75

sebastianheuer opened this issue Aug 2, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@sebastianheuer
Copy link
Member

sebastianheuer commented Aug 2, 2016

When I have an installed PHAR in phive.xml and I explicitly install the same PHAR with a different version constraint, the data in phive.xml should be updated accordingly.

Example:
Data in phive.xml:

<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
  <phar name="phpunit" version="^5.4.0" location="./tools/phpunit" installed="5.4.8"/>
</phive>

Install phpunit with version constraint 5.2.12:

$ phive install phpunit@5.2.12
Phive 0.6.1 - Copyright (C) 2015-2016 by Arne Blankerts, Sebastian Heuer and Contributors
Downloading https://phar.phpunit.de/phive.xml [ 65.82 KB / 65.82 KB - 100% ]
Linking phpunit-5.2.12.phar to /Users/sebastian/projects/php/phive/tools/phpunit

The PHAR gets installed correctly:

$ tools/phpunit --version
PHPUnit 5.2.12 by Sebastian Bergmann and contributors.

But phive.xml still looks the same:

<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
  <phar name="phpunit" version="^5.4.0" location="./tools/phpunit" installed="5.4.8"/>
</phive>
@sebastianheuer sebastianheuer added this to the 0.6.1 milestone Aug 2, 2016
@sebastianheuer sebastianheuer self-assigned this Aug 2, 2016
@sebastianheuer sebastianheuer modified the milestones: 0.7.0, 0.6.1 Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant