From 59d7198315c8c020651b2836f9f812bedb8a0319 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 24 Jul 2026 09:55:54 +0200 Subject: [PATCH] feat: add :needs_json.file target --- docs.bzl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs.bzl b/docs.bzl index d89a1ac4c..585c77359 100644 --- a/docs.bzl +++ b/docs.bzl @@ -321,6 +321,16 @@ def docs(source_dir = "docs", data = [], deps = [], scan_code = [], known_good = allow_persistent_workers = False, ) + native.genrule( + # In contrast to the "needs_json" target represents *only* the needs.json file, + # not the whole needs build output. + name = "needs_json.file", + srcs = [":needs_json"], + outs = ["needs.json"], + cmd = "cp $(location :needs_json)/needs.json $@", + visibility = ["//visibility:public"], + ) + native.genrule( name = "metrics_json", srcs = [":needs_json"],