Skip to content

git: Add support for loading the composer.lock file relative to the current directory #2 - #52

Open
cweiske wants to merge 10 commits into
davidrjonas:masterfrom
mogic-le:git-relative-path-support2
Open

cweiske wants to merge 10 commits into
davidrjonas:masterfrom
mogic-le:git-relative-path-support2

Conversation

@cweiske

@cweiske cweiske commented Sep 29, 2026 •

Copy link
Copy Markdown

This is #44 by @codebymikey ported to the phpunit-based tests.

The patch allows you to run composer-lock-diff in a subdirectory of the git repository without providing the --path parameter. This is tremendously helpful for projects that keep composer.json+lock files in subdirectories.


Based on #51, which should be merged first.

djonas-noip and others added 10 commits November 13, 2025 10:34
Builds upon davidrjonas#41
Resolves: davidrjonas#37

Example:

$ composer-lock-diff --no-links
+------------------------------------+-------------+-----------------------+
| Production Changes                 | From        | To                    |
+------------------------------------+-------------+-----------------------+
| andersundsehr/aus-driver-amazon-s3 | 1.12.1      | 1.13.1                |
| felixnagel/generic-gallery         | 4.3.0       | 5.2.0                 |
| fluidtypo3/flux                    | 9.7.2       | 9.7.4                 |
+------------------------------------+-------------+-----------------------+

+-------------------+---------+---------+
| Dev Changes       | From    | To      |
+-------------------+---------+---------+
| mogic/mogic-phpcs | d81fefd | 0eb8337 |
+-------------------+---------+---------+

+------------------------------------+---------+---------+
| Indirect Production Changes        | From    | To      |
+------------------------------------+---------+---------+
| aws/aws-crt-php                    | v1.0.2  | v1.2.7  |
| aws/aws-sdk-php                    | 3.255.7 | 3.331.0 |
| beberlei/assert                    | v3.3.2  | v3.3.3  |
| clue/stream-filter                 | v1.6.0  | v1.7.0  |
+------------------------------------+---------+---------+

+----------------------+---------+---------+
| Indirect Dev Changes | From    | To      |
+----------------------+---------+---------+
| phpstan/phpstan      | 1.12.10 | 1.12.11 |
+----------------------+---------+---------+
…urrent directory.

Ignore the composer.lock and vendor directory.

Github codespaces automatically does a composer install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants