Files
Sebastian Poxhofer bf5ff94d28 refactor(manager): build artifact results with the shared helpers (#46092)
Migrate apm, bun, cargo, cocoapods, composer, conan, copier, deno,
devbox, gomod, helmv3, jsonnet-bundler, kustomize, mix, nuget and vendir
onto `fileAddition()`, `artifactError()` and `artifactErrorResult()`.
copier's private `artifactError()` is replaced by the shared one.

Behaviour change: artifact error text now comes from
`artifactErrorMessageFromExecError` everywhere, i.e. a non-blank
`err.stderr`, else a non-blank `err.stdout`, else `err.message`.
Previously apm used `${err}` ("Error: " prefix), cocoapods used a
nullish coalesce that kept an empty stderr, nuget preferred stdout over
stderr, and jsonnet-bundler emitted an undefined stderr with no
fallback. The rest used `err.message` only and are unchanged for errors
without output.
2026-09-16 13:13:41 +00:00
..

Keeps Copier templates up to date. Supports multiple .copier-answers(...).y(a)ml files in a single repository. If a template requires unsafe features, Copier must be invoked with the --trust flag. Enabling this behavior must be allowed in the self-hosted configuration via allowScripts. Actually enable it in the configuration by setting ignoreScripts to false.

If you need to change the versioning format, read the versioning documentation to learn more.

Private Modules Authentication

To look up new template versions, Renovate converts SSH-style _src_path URLs (like git+ssh://git@gitlab.com/some-org/some-template.git) to their HTTPS equivalent, the same way the git-submodules manager does. This way the lookup works with hostRules credentials on setups which access the Git host via HTTPS only. The answers file itself keeps the original URL.

Before running the copier command to update from the template, Renovate exports git insteadOf directives in environment variables.

Renovate uses this logic before it updates the template copy:

The token from the hostRules entry matching hostType=github and matchHost=api.github.com is added as the default authentication for github.com. For those running against github.com, this token will be the default platform token.

Next, all hostRules with both a token or username/password and matchHost will be fetched, except for any github.com one from above.

Rules from this list are converted to environment variable directives if they match any of these characteristics:

  • No hostType is defined, or
  • hostType is git-tags, or
  • hostType is a platform (github, gitlab, azure, etc.)