Problems with path repositories and git branches #12291
-
I've got a TYPO3 project with a site extension in a subdirectory. This subdirectory is used as composer package, referenced as a path repository: Root
This works fine unless I want to update packages in the root composer.json file when I am in a feature branch. When running
I tried setting Another problem: When running "composer update" in a branch, it updates the local packages:
What can I do to make composer ignore the current branch I am on and do not give me any conflicts?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The best solution I have to this problem is to hardcode a version in the extension (assuming it never needs to be published). So you put |
Beta Was this translation helpful? Give feedback.
The best solution I have to this problem is to hardcode a version in the extension (assuming it never needs to be published). So you put
"version": "1.0.0",
in the extension's composer.json, and require it as such instead of dev-develop, then it always matches no matter which branch you're on.