[GH-ISSUE #597] Decide if composer.lock should be tracked in Git (or stay with composer.lock in .gitignore) #418

Closed
opened 2026-02-25 21:34:58 +03:00 by kerem · 6 comments
Owner
Originally created by @marclaporte on GitHub (Aug 14, 2022). Original GitHub issue: https://github.com/cypht-org/cypht/issues/597 https://stackoverflow.com/questions/12896780/should-composer-lock-be-committed-to-version-control https://search.brave.com/search?q=composer.lock composer.lock is now in https://github.com/jasonmunro/cypht/blob/master/.gitignore Related: https://github.com/jasonmunro/cypht/issues/311
kerem closed this issue 2026-02-25 21:34:58 +03:00
Author
Owner

@marclaporte commented on GitHub (Aug 22, 2022):

Related chat thread on Gitter: https://gitter.im/cypht-org/community?at=62fa629511a6a83d040e77fb

<!-- gh-comment-id:1222262065 --> @marclaporte commented on GitHub (Aug 22, 2022): Related chat thread on Gitter: https://gitter.im/cypht-org/community?at=62fa629511a6a83d040e77fb
Author
Owner

@Tea23 commented on GitHub (Sep 26, 2022):

Removing composer.lock has caused an issue with install. As composer.json contains the pre install and pre update commands composer check-platform-reqs, composer install expects a lockfile to be present.

I'm a neophyte with composer and stuff, so I worked around this by replacing the commands in pre-install and pre-update with echo hi and then composer install correctly generated the lockfile.

<!-- gh-comment-id:1257989488 --> @Tea23 commented on GitHub (Sep 26, 2022): Removing composer.lock has caused an issue with install. As composer.json contains the pre install and pre update commands `composer check-platform-reqs`, `composer install` expects a lockfile to be present. I'm a neophyte with composer and stuff, so I worked around this by replacing the commands in pre-install and pre-update with `echo hi` and then `composer install` correctly generated the lockfile.
Author
Owner

@kk6mrp commented on GitHub (Oct 1, 2022):

Removing composer.lock has caused an issue with install. As composer.json contains the pre install and pre update commands composer check-platform-reqs, composer install expects a lockfile to be present.

I'm having this same issue when trying to update.

<!-- gh-comment-id:1264381306 --> @kk6mrp commented on GitHub (Oct 1, 2022): > Removing composer.lock has caused an issue with install. As composer.json contains the pre install and pre update commands `composer check-platform-reqs`, `composer install` expects a lockfile to be present. I'm having this same issue when trying to update.
Author
Owner

@marclaporte commented on GitHub (Nov 1, 2022):

Related: https://github.com/jasonmunro/cypht/pull/632/files

<!-- gh-comment-id:1297865516 --> @marclaporte commented on GitHub (Nov 1, 2022): Related: https://github.com/jasonmunro/cypht/pull/632/files
Author
Owner

@marclaporte commented on GitHub (Jul 7, 2023):

For the record, composer.lock was removed here: github.com/cypht-org/cypht@131daacbeb

And it's highly likely we will resume maintaining composer.lock in Git

<!-- gh-comment-id:1625471516 --> @marclaporte commented on GitHub (Jul 7, 2023): For the record, composer.lock was removed here: https://github.com/cypht-org/cypht/commit/131daacbeb765671ad6d0c90fb4085cb2c9c2eae And it's highly likely we will resume maintaining composer.lock in Git
Author
Owner

@marclaporte commented on GitHub (Jul 11, 2023):

composer.lock is now back in the code base:
github.com/cypht-org/cypht@58f007a324

<!-- gh-comment-id:1630807712 --> @marclaporte commented on GitHub (Jul 11, 2023): composer.lock is now back in the code base: https://github.com/cypht-org/cypht/commit/58f007a3240d4a06cc806982fc3bc37f7b6d9112
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#418
No description provided.