fixed composer.json to download the same set of vendors as with use of c... #6043
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...omposer.lock. that way Piwik can be also installed with Composer as dependency along with its dependencies.
Originally this issue came out when I tried to download Piwik along with it's plugins using different composer.json file. That way Composer would download dependencies described in composer.json. This caused installation and Piwik in general to break down due to vendor version mismatch. In 'standard' use case on the other hand it worked well, as strict version was stored inside of composer.lock file.
Tilde operator is not quite safe for precise version marking (ref. https://getcomposer.org/doc/01-basic-usage.md#next-significant-release-tilde-operator- ) , so I would propose to always keep composer.json and composer.lock up-to-date using precise versioning in composer.json, so Piwik can be managed with Composer easily.
For now I have found that lessphp was causing problems after download, but it generally could be a good idea to switch to strict versioning for all vendors.