phar-io / phive

The Phar Installation and Verification Environment (PHIVE)
https://phar.io
BSD 3-Clause "New" or "Revised" License
581 stars 45 forks source link

Global installations are written to local phive.xml #102

Closed sebastianheuer closed 7 years ago

sebastianheuer commented 7 years ago
$ phive install --global phploc                                                                                                                                  
Phive 0.6.3-6-g47f6145 - Copyright (C) 2015-2017 by Arne Blankerts, Sebastian Heuer and Contributors
Linking phploc-3.0.1.phar to /usr/local/Cellar/php71/7.1.3_15/bin/phploc

$ cat phive.xml
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
  <phar name="phploc" version="^3.0.1" installed="3.0.1" location="../../../../../../../usr/local/Cellar/php71/7.1.3_15/bin/phploc"/>
</phive>
sebastianheuer commented 7 years ago

Idea: keep track of globally installed PHARs in ~/.phive/phive.xml. That way the install and update processes are the same for local and global installations.