Skip to content

Remove composer.lock and disable lock file generation#768

Merged
GaryJones merged 1 commit intodevelopfrom
feat/remove-composer-lock
Nov 6, 2025
Merged

Remove composer.lock and disable lock file generation#768
GaryJones merged 1 commit intodevelopfrom
feat/remove-composer-lock

Conversation

@GaryJones
Copy link
Contributor

Summary

  • Removed composer.lock from version control
  • Added composer.lock to .gitignore
  • Set "lock": false in composer.json config to prevent lock file generation

This resolves CI/CD failures caused by locked dependency versions that are incompatible with different PHP versions. For WordPress plugins, dependencies should be resolved at install time to ensure compatibility with the target environment.

Background

The previous PR (#767) was failing because composer.lock contained dependencies locked to PHP 8.1+ (doctrine/instantiator 2.0.0, exussum12/coverage-checker 1.1.1) while the CI was running PHP 8.0.30. By removing the lock file and configuring Composer to not generate one, dependencies will be resolved based on the constraints in composer.json for each environment.

Test plan

  • Verify CI passes with composer install on PHP 8.0
  • Verify dependencies install correctly without a lock file
  • Confirm composer.lock is not generated after running composer install

🤖 Generated with Claude Code

This commit removes composer.lock from version control and configures Composer to not generate lock files. This is appropriate for WordPress plugins where dependencies should be resolved at install time to ensure compatibility with the environment.

Changes:
- Removed composer.lock from git repository
- Added composer.lock to .gitignore
- Set "lock": false in composer.json config to prevent lock file generation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Nov 6, 2025
@GaryJones GaryJones merged commit 69d1184 into develop Nov 6, 2025
3 of 4 checks passed
@GaryJones GaryJones deleted the feat/remove-composer-lock branch November 6, 2025 13:30
@GaryJones GaryJones added this to the Next patch milestone Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant