renovatebot / config-help

Please use the Discussions feature of https://github.com/renovatebot/renovate instead
https://github.com/renovatebot/renovate/discussions
MIT License
27 stars 16 forks source link

"Artifact update problem" with Composer #1002

Closed ThibaultVlacich closed 3 years ago

ThibaultVlacich commented 3 years ago

What Renovate type, platform and version are you using?

Hosted app, GitHub.

Describe the bug

I have been getting those "Artifact update problem" comments on my PRs since the last few days.

:warning: Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

:recycle: Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you check the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: docker run --rm --name=renovate_composer --label=renovate_child -v "/mnt/renovate/gh/ThibaultVlacich/lucklesslovelocks.com-api":"/mnt/renovate/gh/ThibaultVlacich/lucklesslovelocks.com-api" -v "/tmp/renovate-cache":"/tmp/renovate-cache" -e COMPOSER_CACHE_DIR -e COMPOSER_AUTH -w "/mnt/renovate/gh/ThibaultVlacich/lucklesslovelocks.com-api" docker.io/renovate/composer:2.0.7 bash -l -c "composer update lexik/jwt-authentication-bundle --with-dependencies --ignore-platform-reqs --no-ansi --no-interaction --no-scripts --no-autoloader"
Loading composer repositories with package information
Dependency "symfony/framework-bundle" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency "symfony/security-bundle" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires symfony/maker-bundle 1.24.2, found symfony/maker-bundle[v1.24.2] but the package is fixed to v1.23.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Additional context

Probably caused by renovatebot/renovate#7816

rarkins commented 3 years ago

Please provide your full config as well as ideally a public reproduction so that we can debug it.

rarkins commented 3 years ago

Our config:base preset has a grouping for symfony/* packages. Are you using it? https://github.com/renovatebot/renovate/blob/f52fe033de5fae6be0155c3b36fad1ec6f722f01/lib/config/presets/internal/group.ts#L146-L155

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon if no further activity occurs. If this question is not done (either you plan to update it or are waiting on someone to respond) then please add a comment here to bump it and/or get the other person's attention. We aim to do our best to solve every problem. This bot is here to help us clean up issues which are no longer of use to the original poster, and not to close anything prematurely, so bump as you need!

ThibaultVlacich commented 3 years ago

I think the reason I was getting this error was because my lockfile was not in sync with the composer.json file.

After running a composer update I'm not getting the error anymore.