hiqdev / asset-packagist

Asset Packagist
https://asset-packagist.org
BSD 3-Clause "New" or "Revised" License
247 stars 24 forks source link

Patch Version #70

Closed nadar closed 6 years ago

nadar commented 6 years ago

It seems like that a constraint like ~1.6.0 for angular will install the latest patch version v1.6.7-patch5468 instead of 1.6.6 (which is the latest version)

The fxp plugin therefore had an option to disable patch version:

"fxp-asset": {
     "pattern-skip-version": "(-build|-patch)"
}

Is there something similar?

Please provide your composer.json if appropriate.

{
    "name" : "luyadev/luya-module-admin",
    "description" : "Administration core module for all LUYA admin modules",
    "type" : "luya-core",
    "license": "MIT",
    "homepage" : "http://luya.io",
    "require" : {
        "yiisoft/yii2-imagine": "~2.1.0",
        "flowjs/flow-php-server": "^1.0"
    },
    "require-dev" : {
    "luyadev/luya-core" : "^1.0@dev",
    "luyadev/luya-testsuite" : "^1.0@dev",
    "luyadev/luya-module-cms" : "^1.0@dev",
    "php-coveralls/php-coveralls": "^1.0",
    "twbs/bootstrap": "v4.0.0-beta",
    "bower-asset/angular" : "1.6.5",
    "bower-asset/angular-loading-bar" : "^0.9",
    "bower-asset/angular-slugify" : "^1.0.0",
    "bower-asset/angularjs-datepicker" : "^2.1.0",
    "bower-asset/ui-router" : "~0.4.0",
    "bower-asset/ng-file-upload" : "~12.2.0",
    "bower-asset/ng-flow" : "~2.7.0",
    "bower-asset/ng-wig" : "~3.0.0",
    "bower-asset/twigjs-bower": "~0.10.5",
    "bower-asset/angular-filter" : "~0.5.15"
    },
    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        }
    },
    "config": {
        "platform": {"php": "7.0"}
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}
hiqsol commented 6 years ago

Unfortunately at the moment there is no way to pass options into asset-packagist.

Should these patch versions be considered dev (not stable) ?

nadar commented 6 years ago

Yes, i would consider patch versions as not stable.

hiqsol commented 6 years ago

The thing is that I can't make it dev for you only :) Is it ok for everyone to mark these versions dev?

nadar commented 6 years ago

@hiqsol of course, i know ;-) but i assume this would be a good solution to consider patch version as not stable.

hiqsol commented 6 years ago

I've converted -patch versions to -RC, please let me know if it helps.

nadar commented 6 years ago

Seems to work! Thanks