Closed swashata closed 6 years ago
Composer is disabled by default, so it’s expected that it won’t run without being explicitly enabled. However are you saying that it doesn’t detect composer files unless you you disable npm too? Also, why do you need to specify fileMatch?
One more thing, but unrelated: I’m pretty sure you don’t want to bump major versions with bumpVersion
Hi,
bumpVersion
and npm
disable was actually a part of my debugging process. I didn't set it initially.
However are you saying that it doesn’t detect composer files unless you you disable npm too?
No, the output are just the same. It does successfully detect composer.json even if npm is enabled. I disabled it to just get a sane debug log.
Also, why do you need to specify fileMatch?
I did not initially. While debugging, I enabled it to find out if it makes any difference. As it turns out, it does not.
Composer is disabled by default, so it’s expected that it won’t run without being explicitly enabled.
I do have this enabled by renovate.json under my project.
{
"assignees": [
"swashata"
],
"baseBranches": [
"v5"
],
"composer": {
"enabled": true
},
"lockFileMaintenance": {
"enabled": true
}
}
One more thing, but unrelated: I’m pretty sure you don’t want to bump major versions with bumpVersion
Understood. I just enabled it to check if doing that has some effect on composer.json. But it does not. Renovate is still not able to update dependencies.
It looks like the additional fileMatch is causing composer.json to be detected twice, at the. Set least this makes the log confusing
Okay I am trying without a fileMatch and I will let you know.
Current:
"stripe/stripe-php": "^6.2",
Latest: v6.10.3
Isn’t that within the current range? Ie ^6.2 means >= 6.2.0 < 7.0.0
?
What new value were you expecting?
I was expecting that renovateapp would change "stripe/stripe-php": "^6.2"
to "stripe/stripe-php": "^6.10.3"
. Isn't this the case for npm?
I have setup a repo https://wpquark.io/swashata/composer-renovate-test
When I ran renovate from my server I got this
DEBUG: File config
"config": {}
DEBUG: CLI config
"config": {
"repositories": ["swashata/composer-renovate-test"],
"logLevel": "debug",
"platform": "gitlab",
"endpoint": "https://wpquark.io/api/v4/",
"token": "***********"
}
DEBUG: Env config
"config": {"endpoints": []}
INFO: Renovating repository (repository=swashata/composer-renovate-test)
DEBUG: assignPlatform (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test"
DEBUG: swashata/composer-renovate-test default branch = master (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "user"
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/merge_requests?per_page=100"
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/repository/tree?ref=master&per_page=100&recursive=true"
DEBUG: Retrieved fileList with length 5 (repository=swashata/composer-renovate-test)
DEBUG: resetMemCache() (repository=swashata/composer-renovate-test)
DEBUG: checkOnboarding() (repository=swashata/composer-renovate-test)
DEBUG: isOnboarded() (repository=swashata/composer-renovate-test)
DEBUG: findFile(renovate.json) (repository=swashata/composer-renovate-test)
DEBUG: renovate.json exists (repository=swashata/composer-renovate-test)
DEBUG: Repo is onboarded (repository=swashata/composer-renovate-test)
DEBUG: Found renovate.json config file (repository=swashata/composer-renovate-test)
DEBUG: getFile(filePath=renovate.json, branchName=undefined) (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/repository/files/renovate.json?ref=master"
INFO: renovate.json config (repository=swashata/composer-renovate-test)
"config": {"composer": {"enabled": true}}
DEBUG: migrateAndValidate() (repository=swashata/composer-renovate-test)
DEBUG: No config migration necessary (repository=swashata/composer-renovate-test)
DEBUG: massaged config (repository=swashata/composer-renovate-test)
"config": {"composer": {"enabled": true}}
DEBUG: renovate.json migrated config (repository=swashata/composer-renovate-test)
"config": {"composer": {"enabled": true}}
DEBUG: checkBaseBranch() (repository=swashata/composer-renovate-test)
DEBUG: config.repoIsOnboarded=true (repository=swashata/composer-renovate-test)
DEBUG: detectSemanticCommits() (repository=swashata/composer-renovate-test)
DEBUG: getCommitMessages (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/repository/commits"
DEBUG: Semantic commits detection: unknown (repository=swashata/composer-renovate-test)
INFO: No semantic commits detected (repository=swashata/composer-renovate-test)
DEBUG: processRepo() (repository=swashata/composer-renovate-test)
DEBUG: No baseBranches (repository=swashata/composer-renovate-test)
DEBUG: extractAndUpdate() (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(bazel) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|/)WORKSPACE$ for manager bazel (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(buildkite) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: \.buildkite/.+\.yml$ for manager buildkite (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(circleci) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: ^.circleci/config.yml$ for manager circleci (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(composer) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|\/)([\w-]*)composer.json$ for manager composer (repository=swashata/composer-renovate-test)
DEBUG: Matched 1 file(s) for manager composer (repository=swashata/composer-renovate-test)
"matchedFiles": ["composer.json"]
DEBUG: getFile(filePath=composer.json, branchName=undefined) (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/repository/files/composer.json?ref=master"
DEBUG: composer.extractDependencies() (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(docker) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|/)Dockerfile$ for manager docker (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(docker-compose) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|/)docker-compose[^/]*\.ya?ml$ for manager docker-compose (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(meteor) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|/)package.js$ for manager meteor (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(npm) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|/)package.json$ for manager npm (repository=swashata/composer-renovate-test)
DEBUG: Detecting Lerna and Yarn Workspaces (repository=swashata/composer-renovate-test)
DEBUG: Finding locked versions (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(nvm) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: ^.nvmrc$ for manager nvm (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(pip_requirements) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|\/)([\w-]*)requirements.(txt|pip)$ for manager pip_requirements (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(travis) (repository=swashata/composer-renovate-test)
DEBUG: travis is disabled (repository=swashata/composer-renovate-test)
DEBUG: getPackageFiles(nuget) (repository=swashata/composer-renovate-test)
DEBUG: Using file match: (^|/)*\.csproj$ for manager nuget (repository=swashata/composer-renovate-test)
DEBUG: Found 1 package file(s) (repository=swashata/composer-renovate-test)
DEBUG: manager.fetchUpdates() (repository=swashata/composer-renovate-test)
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "mailerlite/mailerlite-api-v2-php-sdk",
"currentValue": "^0.2.1"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "paypal/rest-api-sdk-php",
"currentValue": "^1.12"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "stripe/stripe-php",
"currentValue": "^6.2"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "activecampaign/api-php",
"currentValue": "^2.0"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "aweber/aweber",
"currentValue": "^1.1"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "campaignmonitor/createsend-php",
"currentValue": "^6.0.0"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "getresponse/getresponse",
"currentValue": "^0.0.2"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "drewm/mailchimp-api",
"currentValue": "^v2.2.4"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "google/recaptcha",
"currentValue": "^1.1"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "leafo/scssphp",
"currentValue": "^0.7.1"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "stil/gd-text",
"currentValue": "^1.1"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "authorizenet/authorizenet",
"currentValue": "^1.9"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "yahnis-elsts/plugin-update-checker",
"currentValue": "^4.2"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "twisted1919/mailwizz-php-sdk",
"currentValue": "^1.0"
DEBUG: lookupUpdates (repository=swashata/composer-renovate-test)
"depName": "defuse/php-encryption",
"currentValue": "^2.1"
DEBUG: packageFiles with updates (repository=swashata/composer-renovate-test)
"config": {
"composer": [
{
"packageFile": "composer.json",
"manager": "composer",
"deps": [
{
"depType": "require",
"depName": "enormail/enormail-php-api",
"currentValue": "dev-master",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/enormail/enormail-php-api",
"skipReason": "unsupported-constraint",
"updates": []
},
{
"depType": "require",
"depName": "mailerlite/mailerlite-api-v2-php-sdk",
"currentValue": "^0.2.1",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/mailerlite/mailerlite-api-v2-php-sdk",
"updates": [],
"repositoryUrl": "https://github.com/mailerlite/mailerlite-api-v2-php-sdk"
},
{
"depType": "require",
"depName": "paypal/rest-api-sdk-php",
"currentValue": "^1.12",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/paypal/rest-api-sdk-php",
"updates": [],
"repositoryUrl": "https://github.com/paypal/PayPal-PHP-SDK"
},
{
"depType": "require",
"depName": "stripe/stripe-php",
"currentValue": "^6.2",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/stripe/stripe-php",
"updates": [],
"repositoryUrl": "https://github.com/stripe/stripe-php"
},
{
"depType": "require",
"depName": "activecampaign/api-php",
"currentValue": "^2.0",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/activecampaign/api-php",
"updates": [],
"repositoryUrl": "https://github.com/ActiveCampaign/activecampaign-api-php"
},
{
"depType": "require",
"depName": "aweber/aweber",
"currentValue": "^1.1",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/aweber/aweber",
"updates": [],
"repositoryUrl": "https://github.com/aweber/AWeber-API-PHP-Library"
},
{
"depType": "require",
"depName": "campaignmonitor/createsend-php",
"currentValue": "^6.0.0",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/campaignmonitor/createsend-php",
"updates": [],
"repositoryUrl": "https://github.com/campaignmonitor/createsend-php"
},
{
"depType": "require",
"depName": "getresponse/getresponse",
"currentValue": "^0.0.2",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/getresponse/getresponse",
"updates": [],
"repositoryUrl": "https://github.com/GetResponse/getresponse-api-php"
},
{
"depType": "require",
"depName": "drewm/mailchimp-api",
"currentValue": "^v2.2.4",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/drewm/mailchimp-api",
"updates": [],
"repositoryUrl": "https://github.com/drewm/mailchimp-api"
},
{
"depType": "require",
"depName": "google/recaptcha",
"currentValue": "^1.1",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/google/recaptcha",
"updates": [],
"repositoryUrl": "https://github.com/google/recaptcha"
},
{
"depType": "require",
"depName": "leafo/scssphp",
"currentValue": "^0.7.1",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/leafo/scssphp",
"updates": [],
"repositoryUrl": "https://github.com/leafo/scssphp"
},
{
"depType": "require",
"depName": "stil/gd-text",
"currentValue": "^1.1",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/stil/gd-text",
"updates": [],
"repositoryUrl": "https://github.com/stil/gd-text"
},
{
"depType": "require",
"depName": "authorizenet/authorizenet",
"currentValue": "^1.9",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/authorizenet/authorizenet",
"updates": [],
"repositoryUrl": "https://github.com/AuthorizeNet/sdk-php"
},
{
"depType": "require",
"depName": "yahnis-elsts/plugin-update-checker",
"currentValue": "^4.2",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/yahnis-elsts/plugin-update-checker",
"updates": [],
"repositoryUrl": "https://github.com/YahnisElsts/plugin-update-checker"
},
{
"depType": "require",
"depName": "twisted1919/mailwizz-php-sdk",
"currentValue": "^1.0",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/twisted1919/mailwizz-php-sdk",
"updates": [],
"repositoryUrl": "https://github.com/twisted1919/mailwizz-php-sdk"
},
{
"depType": "require",
"depName": "defuse/php-encryption",
"currentValue": "^2.1",
"versionScheme": "semverComposer",
"purl": "pkg:packagist/defuse/php-encryption",
"updates": [],
"repositoryUrl": "https://github.com/defuse/php-encryption"
}
]
}
]
}
DEBUG: (repository=swashata/composer-renovate-test)
"deprecatedPackages": {}
DEBUG: branchifyUpgrades (repository=swashata/composer-renovate-test)
DEBUG: 0 updates found (repository=swashata/composer-renovate-test)
DEBUG: (repository=swashata/composer-renovate-test)
"upgradeNames": []
DEBUG: Returning 0 branch(es) (repository=swashata/composer-renovate-test)
DEBUG: config.repoIsOnboarded=true (repository=swashata/composer-renovate-test)
INFO: Processing 0 branch(es) (repository=swashata/composer-renovate-test)
DEBUG: branchPrefix: renovate/ (repository=swashata/composer-renovate-test)
DEBUG: Found 0 Renovate PRs (repository=swashata/composer-renovate-test)
"renovatePrs": []
DEBUG: Removing any stale branches (repository=swashata/composer-renovate-test)
DEBUG: config.repoIsOnboarded=true (repository=swashata/composer-renovate-test)
DEBUG: branchList (repository=swashata/composer-renovate-test)
"branchList": []
DEBUG: getAllRenovateBranches(renovate/) (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/repository/branches"
DEBUG: No renovate branches found (repository=swashata/composer-renovate-test)
DEBUG: ensureIssueClosing() (repository=swashata/composer-renovate-test)
DEBUG: GET (repository=swashata/composer-renovate-test)
"path": "projects/swashata%2Fcomposer-renovate-test/issues?state=opened"
INFO: Finished repository (repository=swashata/composer-renovate-test)
INFO: Renovate finished
Looks like I got it all wrong. Since those are not pinned dependency, hence renovate does not prompt update. Let me pin them manually and see what happens.
If you set rangeStrategy=bump them you’ll see the behaviour you were expecting. But I instead recommend:
Okay. It works good.
But I've found two bugs while working on it. I am reporting them here, but please let me know if it would be better to open a new issue.
vv2.4.0
when there is a v
in composer.json.Example here https://wpquark.io/swashata/composer-renovate-test/merge_requests/2/diffs
Example repo https://wpquark.io/swashata/ComposerTypeError
Note the usage of "rangeStrategy": "bump"
in renovate.json. When I run renovate cli I get this
DEBUG: File config
"config": {}
DEBUG: CLI config
"config": {
"repositories": ["swashata/ComposerTypeError"],
"logLevel": "debug",
"platform": "gitlab",
"endpoint": "https://wpquark.io/api/v4/",
"token": "***********"
}
DEBUG: Env config
"config": {"endpoints": []}
INFO: Renovating repository (repository=swashata/ComposerTypeError)
DEBUG: assignPlatform (repository=swashata/ComposerTypeError)
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "projects/swashata%2FComposerTypeError"
DEBUG: swashata/ComposerTypeError default branch = master (repository=swashata/ComposerTypeError)
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "user"
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "projects/swashata%2FComposerTypeError/merge_requests?per_page=100"
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "projects/swashata%2FComposerTypeError/repository/tree?ref=master&per_page=100&recursive=true"
DEBUG: Retrieved fileList with length 5 (repository=swashata/ComposerTypeError)
DEBUG: resetMemCache() (repository=swashata/ComposerTypeError)
DEBUG: checkOnboarding() (repository=swashata/ComposerTypeError)
DEBUG: isOnboarded() (repository=swashata/ComposerTypeError)
DEBUG: findFile(renovate.json) (repository=swashata/ComposerTypeError)
DEBUG: renovate.json exists (repository=swashata/ComposerTypeError)
DEBUG: Repo is onboarded (repository=swashata/ComposerTypeError)
DEBUG: Found renovate.json config file (repository=swashata/ComposerTypeError)
DEBUG: getFile(filePath=renovate.json, branchName=undefined) (repository=swashata/ComposerTypeError)
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "projects/swashata%2FComposerTypeError/repository/files/renovate.json?ref=master"
INFO: renovate.json config (repository=swashata/ComposerTypeError)
"config": {"composer": {"enabled": true}, "rangeStrategy": "bump"}
DEBUG: migrateAndValidate() (repository=swashata/ComposerTypeError)
DEBUG: No config migration necessary (repository=swashata/ComposerTypeError)
DEBUG: massaged config (repository=swashata/ComposerTypeError)
"config": {"composer": {"enabled": true}, "rangeStrategy": "bump"}
DEBUG: renovate.json migrated config (repository=swashata/ComposerTypeError)
"config": {"composer": {"enabled": true}, "rangeStrategy": "bump"}
DEBUG: checkBaseBranch() (repository=swashata/ComposerTypeError)
DEBUG: config.repoIsOnboarded=true (repository=swashata/ComposerTypeError)
DEBUG: detectSemanticCommits() (repository=swashata/ComposerTypeError)
DEBUG: getCommitMessages (repository=swashata/ComposerTypeError)
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "projects/swashata%2FComposerTypeError/repository/commits"
DEBUG: Semantic commits detection: unknown (repository=swashata/ComposerTypeError)
INFO: No semantic commits detected (repository=swashata/ComposerTypeError)
DEBUG: processRepo() (repository=swashata/ComposerTypeError)
DEBUG: No baseBranches (repository=swashata/ComposerTypeError)
DEBUG: extractAndUpdate() (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(bazel) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|/)WORKSPACE$ for manager bazel (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(buildkite) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: \.buildkite/.+\.yml$ for manager buildkite (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(circleci) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: ^.circleci/config.yml$ for manager circleci (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(composer) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|\/)([\w-]*)composer.json$ for manager composer (repository=swashata/ComposerTypeError)
DEBUG: Matched 1 file(s) for manager composer (repository=swashata/ComposerTypeError)
"matchedFiles": ["composer.json"]
DEBUG: getFile(filePath=composer.json, branchName=undefined) (repository=swashata/ComposerTypeError)
DEBUG: GET (repository=swashata/ComposerTypeError)
"path": "projects/swashata%2FComposerTypeError/repository/files/composer.json?ref=master"
DEBUG: composer.extractDependencies() (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(docker) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|/)Dockerfile$ for manager docker (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(docker-compose) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|/)docker-compose[^/]*\.ya?ml$ for manager docker-compose (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(meteor) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|/)package.js$ for manager meteor (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(npm) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|/)package.json$ for manager npm (repository=swashata/ComposerTypeError)
DEBUG: Detecting Lerna and Yarn Workspaces (repository=swashata/ComposerTypeError)
DEBUG: Finding locked versions (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(nvm) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: ^.nvmrc$ for manager nvm (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(pip_requirements) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|\/)([\w-]*)requirements.(txt|pip)$ for manager pip_requirements (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(travis) (repository=swashata/ComposerTypeError)
DEBUG: travis is disabled (repository=swashata/ComposerTypeError)
DEBUG: getPackageFiles(nuget) (repository=swashata/ComposerTypeError)
DEBUG: Using file match: (^|/)*\.csproj$ for manager nuget (repository=swashata/ComposerTypeError)
DEBUG: Found 1 package file(s) (repository=swashata/ComposerTypeError)
DEBUG: manager.fetchUpdates() (repository=swashata/ComposerTypeError)
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "mailerlite/mailerlite-api-v2-php-sdk",
"currentValue": "^0.2.1"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "paypal/rest-api-sdk-php",
"currentValue": "^1.12"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "stripe/stripe-php",
"currentValue": "^6.2"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "activecampaign/api-php",
"currentValue": "^2.0"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "aweber/aweber",
"currentValue": "^1.1"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "campaignmonitor/createsend-php",
"currentValue": "^6.0.0"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "getresponse/getresponse",
"currentValue": "^0.0.2"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "drewm/mailchimp-api",
"currentValue": "^v2.2.4"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "google/recaptcha",
"currentValue": "^1.1"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "leafo/scssphp",
"currentValue": "^0.7.1"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "stil/gd-text",
"currentValue": "^1.1"
INFO: 1 result(s): ^1.13 (repository=swashata/ComposerTypeError, dependency=paypal/rest-api-sdk-php)
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "authorizenet/authorizenet",
"currentValue": "^1.9"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "yahnis-elsts/plugin-update-checker",
"currentValue": "^4.2"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "twisted1919/mailwizz-php-sdk",
"currentValue": "^1.0"
DEBUG: lookupUpdates (repository=swashata/ComposerTypeError)
"depName": "defuse/php-encryption",
"currentValue": "^2.1"
INFO: 1 result(s): ^0.2.2 (repository=swashata/ComposerTypeError, dependency=mailerlite/mailerlite-api-v2-php-sdk)
INFO: 1 result(s): ^0.7.6 (repository=swashata/ComposerTypeError, dependency=leafo/scssphp)
ERROR: Repository has unknown error (repository=swashata/ComposerTypeError)
"err": {},
"message": "Invalid Version: 2.3",
"body": undefined,
"stack": "TypeError: Invalid Version: 2.3\n at new SemVer (/home/swashata/.config/yarn/global/node_modules/semver/semver.js:305:11)\n at major (/home/swashata/.config/yarn/global/node_modules/semver/semver.js:563:10)\n at Object.getNewValue (/home/swashata/.config/yarn/global/node_modules/renovate/lib/versioning/semver/range.js:48:26)\n at getNewValue (/home/swashata/.config/yarn/global/node_modules/renovate/lib/versioning/semver-composer/index.js:65:23)\n at lookupUpdates (/home/swashata/.config/yarn/global/node_modules/renovate/lib/workers/repository/process/lookup/index.js:114:23)\n at process._tickCallback (internal/process/next_tick.js:68:7)"
INFO: Unknown error (repository=swashata/ComposerTypeError)
"err": {},
"message": "Invalid Version: 2.3"
INFO: Finished repository (repository=swashata/ComposerTypeError)
INFO: Renovate finished
INFO: 1 result(s): ^6.10 (dependency=stripe/stripe-php)
INFO: 1 result(s): ^2.2 (dependency=defuse/php-encryption)
Best to close this issue and open separate ones. Also, it’s preferred if you can post any long logs to a gist or something rather than embedding in GitHub issues because it makes it hard for me to respond from mobile.
What Renovate type are you using? Renovate CLI 13.22.4
Describe the bug
I am using self hosted renovate cli. In my project, my
renovate.json
is like thisNow when I run renovate it does not really update the packages in
composer.json
, but only from npmpackage.json
.To Reproduce
Have this in your
composer.json
file.Expected behavior
The packages like
stripe/stripe-php
should have been updated.Additional context
To find out what's going on, I disabled npm and enabled composer and ran renovate cli with log-level debug. Here's what I got.