Commit Graph

4 Commits

Author SHA1 Message Date
Sebastian Poxhofer 183ee9caac fix(manager/rust-toolchain): report skipReason instead of dropping deps (#45144)
The manager emitted `logger.warn` four times during extraction and
returned `null` for content that is valid but not updatable. A
`rust-toolchain.toml` using `path` instead of `channel` is a legitimate
file, yet it failed schema validation and produced a maintainer-facing
warning.

Per the logging guidance in `docs/development/best-practices.md`, WARN
is consumed by metrics and error catching services, so it should not
fire for user content Renovate simply cannot update. The manager guide
also asks for a `skipReason` rather than silently dropping a dependency.

The schema now accepts an optional `channel` and an optional `path`, and
extraction reports:

- `invalid-version` when a channel cannot be parsed
- `path-dependency` when the file points at a local toolchain
- `unspecified-version` when neither field is set

`channel` takes precedence when both are present, since rustup rejects
that combination and `channel` is the actionable field.

Files that are not toolchain files at all still return `null`: TOML that
does not parse, TOML without a `[toolchain]` table, and legacy plain
text files that are empty or hold more than one line. The file pattern
matches any file named `rust-toolchain`, so these are treated as false
matches. All remaining logs are DEBUG.
2026-08-10 07:52:31 +00:00
Sebastian Poxhofer ad0b59f8b7 refactor(oxlint): enable vitest/require-to-throw-message (#44421) 2026-07-07 17:47:04 +00:00
Sebastian Poxhofer 15f4bd8eff chore: migrate from zod/v3 to zod/v4 (#43691)
* chore: migrate from zod/v3 to zod/v4

This commit contains the logic changes

* chore: migrate imports from zod/v3 to zod/v4

This contains import updates and adds explicit record keys as zod/v4 requires these now

* ci: enforce usage of zod/v4
2026-05-30 16:01:58 +00:00
Tobias Bieniek 40251b2462 feat(rust-toolchain): Add rust-toolchain manager (#38554)
* feat(rust-toolchain): Implement `rust-toolchain` manager

* feat(rust-toolchain): Add support for legacy filename

* feat(rust-toolchain): Add support for legacy file format

* refactor(rust-toolchain): Reject empty `channel` strings at parse stage

* tests(rust-toolchain): Cover valid TOML missing `[toolchain]` or `channel`

* refactor(rust-toolchain): Log legacy format fallback at `trace` level

* refactor(rust-toolchain): Reject empty and multi-line legacy files explicitly

* tests(rust-toolchain): Cover unparseable channel value

* tests(rust-toolchain): Use `codeBlock` for multi-line fixtures

* docs(rust-toolchain): Scope pin example to `rust-toolchain` manager

Co-authored-by: Sergei Zharinov <1239644+zharinov@users.noreply.github.com>

* tests(rust-toolchain): Use `codeBlock` for schema fixtures too

---------

Co-authored-by: Sergei Zharinov <1239644+zharinov@users.noreply.github.com>
2026-05-20 15:22:59 +00:00