php - How can I test/install an untagged version of a composer package? -
i test private composer package on localhost without need commit new tag perform test.
my package tree
├── composer.json ├── readme.md └── src ├── controllers │ ├── models ├── providers │ └── routegenericserviceprovider.php ├── repositories ├── routes │ └── generics.php ├── services │ └── transformers
as alternative suggested bey @matteo, can use inline alias , reference commit hash instead of tag.
assume x.y.z
version have installed, , #123abc
hash of commit tag once tested (probably head
of whatever branch want test), run:
$ composer require "my/package:dev-master#123abc x.y.z"
for reference, see:
Comments
Post a Comment