Git commit missing Cargo.lock despite changes being present #33630
-
Minimal reproduction: https://github.com/maxdymond/renovate-33630/ How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Gitlab, 38.94.3 Please tell us more about your question or problemWe're running Renovate with a postUpgrade task against a repository with a Cargo virtual workspace (top-level package points at a number of subpackages). The final action of that postUpgrade task is to show changed files:
The postUpgrade task has bumped the version number of the package, and so that information needs to be written to the Cargo.lock file. This correlates in the renovate logfile with trace-level enabled:
However, after this, the commit only ends up with 9 changes:
Cargo.lock isn't in .gitignore, so I'm at a loss to explain why Renovate hasn't added it to the Git commit. The only potentially weird thing here is that the base Renovate code is also trying to update
From one log line which traces out the
Is it possible that Renovate is treating Logs (if relevant)As per question. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Hi there, We appreciate the effort you put into creating a reproduction. But your reproduction is not minimal yet, or is missing fields we ask for in our template. Please re-read the steps and documentation given in the previous message, and try again to create a minimal reproduction. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
In case anyone in future hits this, this is the patch I've gone with for this issue: 0002-deduplicate-artifacts.patch You get the following output with DEBUG logging:
but you only get the one instance of updatedArtifacts which is then passed to postUpgradeTasks. |
Beta Was this translation helpful? Give feedback.
In case anyone in future hits this, this is the patch I've gone with for this issue: 0002-deduplicate-artifacts.patch
You get the following output with DEBUG logging: