Test if package can be installed against current lockfile + vendor #11141
Answered
by
Seldaek
damienwebdev
asked this question in
Q&A / Support
-
I'm trying to write a fast "package installation" checker with composer and I'm wondering if there's a way to check whether a local package can be installed within another project "quickly". Currently, in the dependent project I'm doing: composer config repositories.local path path/to/package
composer require my-package "@dev" Which works, but appears to trigger network requests (which I'm trying to avoid). Is something like this possible? |
Beta Was this translation helpful? Give feedback.
Answered by
Seldaek
Oct 25, 2022
Replies: 1 comment 1 reply
-
You could try to reduce the steps/narrow it down a bit more I guess:
This will still do some network, but it should be less. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
damienwebdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could try to reduce the steps/narrow it down a bit more I guess:
This will still do some network, but it should be less.