Recommendation: Add composer.lock file to version control #795
jmondragon
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Like with the Laravel framework issue that you linked, the expectation is that you would remove the line in the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are a couple of discussions on this here:laravel/framework and here: StackOverflow
Also, the recommendation from the composer docs is here: Composer
Checking composer.lock into the repository is recommended for applications (but not necessarily for libraries).
Ultimately, of course, it'll be your decision on whether or not to include the composer.lock file, and whether Winter CMS is considered a library or an application, but from my recommendation stems from the fact that Cloud Native Buildpacks (CNB) that are used by GitLab AutoDevOps (and Dokku, Heroku, OpenShift, etc.) depend on it.
Including the composer.lock file would allow me to deploy to these platforms directly from the (forked) repository rather than checking it out, running
composer install
, modifying the.gitignore
file and checking it back in.Beta Was this translation helpful? Give feedback.
All reactions