Open
Description
What happened?
The metadata.json
file for the rules_perl
module doesn't have a yanked_versions
list. This is causing renovate-bot to fail upgrading this module with a schema error:
"datasource":"bazel","packageName":"rules_perl",
"err":
{
"message" : "Schema error",
"stack" :
"ZodError: Schema error
at Object.get error [as error] (/usr/local/renovate/node_modules/.pnpm/[email protected]/node_modules/zod/lib/types.js:55:31)
at ZodObject.parseAsync (/usr/local/renovate/node_modules/.pnpm/[email protected]/node_modules/zod/lib/types.js:196:22)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Http.requestJson (/usr/local/renovate/lib/util/http/index.ts:297:16)
at BazelDatasource.getReleases (/usr/local/renovate/lib/modules/datasource/bazel/index.ts:46:34)
at /usr/local/renovate/lib/util/cache/package/decorator.ts:134:20
at getRegistryReleases (/usr/local/renovate/lib/modules/datasource/index.ts:85:15)
at huntRegistries (/usr/local/renovate/lib/modules/datasource/index.ts:137:13)
at fetchReleases (/usr/local/renovate/lib/modules/datasource/index.ts:320:15)
at lookupUpdates (/usr/local/renovate/lib/workers/repository/process/lookup/index.ts:142:56)
at /usr/local/renovate/lib/workers/repository/process/fetch.ts:79:12
at Function.wrap (/usr/local/renovate/lib/util/stats.ts:38:20)
at /usr/local/renovate/lib/workers/repository/process/fetch.ts:125:23
at /usr/local/renovate/node_modules/.pnpm/[email protected]/node_modules/p-map/index.js:57:22",
"issues":{
"yanked_versions" : "Required"
}}
Version
Development (host) and target OS/architectures:
- linux/x86_64
Output of bazel --version
:
bazel 7.4.1
Version of relevant rules from the WORKSPACE
or MODULE.bazel
file:
bazel_dep(name = "rules_perl", version = "0.2.4")
Language(s) and/or frameworks involved:
n/a
How to reproduce
Can reproduce the error by using [renovate-bot](https://docs.renovatebot.com/) to manage the `rules_perl` dependency, but reviewing the file should be sufficient.
Any other information?
Similar issue was previously reported against the debian_dependency_bazelizer
module in #1254.
There are other metadata.json
files missing yanked_versions
, which presumable will all have the same issue:
modules/rules_tar/metadata.json
modules/rules_curl/metadata.json
modules/openssl/metadata.json
modules/libarmgpuinfo/metadata.json
modules/rules_diff/metadata.json
modules/download_utils/metadata.json
modules/dtc/metadata.json
modules/rules_bzip2/metadata.json
modules/rules_gzip/metadata.json
modules/toolchain_utils/metadata.json
modules/ape/metadata.json
modules/rules_xz/metadata.json
modules/rules_squashfs/metadata.json
modules/rules_perl/metadata.json
modules/rules_coreutils/metadata.json
modules/rules_zstd/metadata.json
modules/libxcrypt/metadata.json
modules/openssh/metadata.json