1
0
Fork 0

Added docs for new reference feature

pull/702/head
Jordi Boggiano 2012-05-17 10:08:48 +02:00
parent c10eb66ac4
commit d7608bcddd
1 changed files with 17 additions and 0 deletions

View File

@ -230,6 +230,23 @@ Example:
} }
} }
`require` and `require-dev` additionally support explicit references (i.e.
commit) for dev versions to make sure they are blocked to a given state, even
when you run update. These only work if you explicitly require a dev version
and append the reference with `#<ref>`. Note that while this is convenient at
times, it should not really be how you use packages in the long term. You
should always try to switch to tagged releases as soon as you can, especially
if the project you work on will not be touched for a while.
Example:
{
"require": {
"monolog/monolog": "dev-master#2eb0c0978d290a1c45346a1955188929cb4e5db7"
"acme/foo": "1.0.x-dev#abc123"
}
}
#### require #### require
Lists packages required by this package. The package will not be installed Lists packages required by this package. The package will not be installed