Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Artifact update problem' when PHP project is in subfolder #5260

Closed
ThibaultVlacich opened this issue Jan 30, 2020 · 2 comments
Closed

'Artifact update problem' when PHP project is in subfolder #5260

ThibaultVlacich opened this issue Jan 30, 2020 · 2 comments

Comments

@ThibaultVlacich
Copy link

What Renovate type are you using?

Hosted App on GitHub.

Describe the bug

On my repository, I have a PHP project in a subfolder. The composer.json file is in that subfolder. When I get a PR to update a dependency, I'm getting this error message:

⚠️ Artifact update problem

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

♻️ 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: server/composer.lock
Command failed: docker run --rm -v "/mnt/renovate/gh/ThibaultVlacich/[redacted]":"/mnt/renovate/gh/ThibaultVlacich/[redacted]" -v "/tmp/renovate-cache":"/tmp/renovate-cache" -e COMPOSER_CACHE_DIR -w "/mnt/renovate/gh/ThibaultVlacich/[redacted]" renovate/composer bash -l -c "composer update sentry/sentry-symfony --with-dependencies --ignore-platform-reqs --no-ansi --no-interaction --no-scripts --no-autoloader"
Composer could not find a composer.json file in /mnt/renovate/gh/ThibaultVlacich/[redacted]
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

As you can see, it's trying to find the composer.json file in the root directory of the repository, and unsurprisingly it's failing...

The issue started less than a week ago, it was working fine before.

@rarkins
Copy link
Collaborator

rarkins commented Jan 30, 2020

Thanks for reporting. I found a bug where we weren't passing the current working directory to composer and it defaults to the root of the repo. The fix should go live within the app today and you can tick the rebase/retry box to regenerated correct PRs with composer.lock.

@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 19.115.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants