For lock files such as go.sum or package-lock.json Renovate calls the matching tool. If it is missing or fails, the PR is created anyway – with status renovate/artifacts: failure and a comment containing the error message.
Symptom
WARN: artifactErrors (repository=shop/shop-worker, branch=renovate/github.com-joho-godo
"artifactErrors": [{"fileName": "go.sum", "stderr": "go: command not found (simul
PR #4
renovate/artifacts: failure
### ⚠️ Artifact update problem
The PR exists, but with a red status and a warning comment.
Diagnosis
Status and comment on the PR, queried via the API.
curl -s -u "$ADMIN" "$FORGEJO/api/v1/repos/shop/shop-worker/commits/$SHA/status" \ | jq -r '.statuses[] | "\(.context): \(.status)"' curl -s -u "$ADMIN" "$FORGEJO/api/v1/repos/shop/shop-worker/issues/$PR/comments" \ | jq -r '.[0].body' | head -1
Causes
go fehltThe tool for the lock file is missing
For go.sum Renovate calls go. If the program is missing from PATH (simulated in the course), it cannot update the lock file.
PR trotzdemThe PR is created with a red status
Renovate still creates the PR, sets the status renovate/artifacts to failure and writes a comment with the error message.
Fix
curl -s -u "$ADMIN" -X PATCH -H 'Content-Type: application/json' \
-d '{"title":"rebase!"}' "$FORGEJO/api/v1/repos/shop/shop-worker/pulls/$PR" \
| jq -r .title
renovate shop/shop-worker 2>&1 | grep -E "Branch updated|PR updated" | cut -c1-60
rebase!
INFO: Branch updated (repository=shop/shop-worker, branch=r
INFO: PR updated (repository=shop/shop-worker, branch=renov
Don't: Merging the PR with a broken lock file. The build then fails with outdated checksums.
Renovate hands-on, day 3: managers and datasources, lock files and what happens when the tool is missing.
Go to day 3 →
FAQ
When does Renovate retry by itself?
Only on certain occasions, for example when the PR title starts with rebase! or the rebase checkbox is ticked.
How do I avoid missing tools?
With the official Renovate images (containerbase), which install tools in the required version.