1
0
Fork 0

[docs] move lib lockfile notes into lib chapter

pull/506/head
Igor Wiedler 2012-03-27 23:18:34 +02:00
parent d0cfe35265
commit ea19aba18c
2 changed files with 8 additions and 11 deletions

View File

@ -115,9 +115,8 @@ the lock file with the new version.
$ php composer.phar update $ php composer.phar update
> **Note:** For your library you may commit the `composer.lock` file too, but it > **Note:** For libraries it is not necessarily recommended to commit the lock file,
> will not have any effect on other projects that depend on it. See also > see also: [Libraries - Lock file](02-libraries.md#lock-file).
> [Libraries - Lock file](02-libraries.md#lock-file).
## Packagist ## Packagist

View File

@ -78,15 +78,13 @@ See [Repositories](05-repositories.md) for more information.
## Lock file ## Lock file
For projects it is recommended to commit the `composer.lock` file into version For your library you may commit the `composer.lock` file if you want to. This
control. For libraries this is not the case. You do not want your library to can help your team to always test against the same dependency versions.
be tied to exact versions of the dependencies. It should work with any However, this lock file will not have any effect on other projects that depend
compatible version, so make sure you specify your version constraints so that on it. It only has an effect on the main project.
they include all compatible versions.
**Do not commit your library's `composer.lock` into version control.** If you do not want to commit the lock file and you are using git, add it to
the `.gitignore`.
If you are using git, add it to the `.gitignore`.
## Publishing to a VCS ## Publishing to a VCS