Spryker dev packages checker

Edit on GitHub

Spryker dev packages checker checks the project Spryker dependencies for the dev-* constraints.

Problem description

Projects contain the Spryker packages dependencies in the require section of the composer.json file. The integration of new versions of Spryker modules by the Spryker Code Upgrader may fail if some of these packages have references to specific branches that use dev-* constraint versions. To prevent this, it is essential to ensure that all Spryker packages have valid version constraints.

Example of code that causes the evaluator error

composer.json

{
    "name": "spryker-shop/b2b-demo-shop",
    "description": "Spryker B2B Demo Shop",
    "license": "proprietary",
    "require": {
      "spryker/asset": "dev-master",
      "spryker/asset-storage": "dev-some-branch"
    }
}

Example of the evaluator error message

============================
SPRYKER DEV PACKAGES CHECKER
============================

Message: Spryker package "spryker/asset:dev-master" has forbidden "dev-*" version constraint
 Target: spryker/storage-gui                                                                    

Message: Spryker package "spryker/asset-storage:dev-some-branch" has forbidden "dev-*" version constraint
 Target: spryker/uuid                                                                                                           


Read more: https://docs.spryker.com/docs/scos/dev/guidelines/keeping-a-project-upgradable/upgradability-guidelines/spryker-dev-packages-checker.html