mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 23:11:31 +00:00
e0cec3dc95
feat(lint): add `types-location` rule and enable it for `lib/modules`
Reviewers consistently ask for exported types to be moved into a
colocated `types.ts`. Add a `renovate/types-location` oxlint rule that
reports `export interface` / `export type` declarations outside such a
file, and turn it on across `lib/modules`.
Re-exports (`export type { X }`, `export type *`), file-local types, and
values (enums, classes, functions) are left alone. `schema.ts` files and
`schema/` directories are excluded via config, matching how
`zod-schema-location` is configured — inferred types belong next to the
schema they are derived from.
Relocating the 87 existing violations means:
- new `types.ts` files for the modules that had none
- `terragrunt/common.ts` folded into its `types.ts`, as it held nothing
else
- `RangeBound` in `versioning/gradle/compare.ts` un-exported, since only
a file-local interface referenced it
- `bazel-module/parser/fragments.ts` split from its inferred types, which
now live in `parser/types.ts` and infer through a namespace import so
each schema keeps its merged name
Alpine Package Keeper (APK) versioning is used for packages served from APK repositories, such as the official Alpine Linux repositories or the Wolfi APK package repository
This implementation follows the Alpine Linux Package versions for version formatting.
Versions are similar to other Linux distributions, e.g. 3.2.1-r0
- The first segment follows semantic versioning
- Alpha, release candidates (_rc2), etc are prefixed with an underscore, not a hyphen.
- Subsequent package versions are -r0, -r1, and so on; the number is from $pkgver.
- Subsequent package fixes are _p0, _p1 (typically seen if not using major.minor.patch, e.g. 6.5_p20250503-r0)
Version Format Examples
2.39.0-r0- Standard version with release number2.39.0_rc1-r0- Release candidate (pre-release)6.5_p20250503-r0- Package fix with date-based patch2.39.0~beta-r0- Beta pre-release
Pre-release Handling
_rcpatterns (e.g.,_rc1,_rc2) are treated as pre-release identifiers_ppatterns (e.g.,_p20250503) are treated as part of the version number~patterns (e.g.,~beta) are treated as pre-release identifiers
Ranges are not supported by this versioning.