From 0144ff673e52e0180ae038b389f1e25160b101e1 Mon Sep 17 00:00:00 2001 From: Lukasz-Juranek Date: Tue, 17 Mar 2026 08:56:22 +0100 Subject: [PATCH] scripts: add py_binary target for spdx_to_github_snapshot Add a runnable `spdx_to_github_snapshot_bin` py_binary target so that callers can invoke the converter via `bazel run //scripts:spdx_to_github_snapshot_bin` instead of reaching into Bazel's internal output_base directory. --- scripts/BUILD.bazel | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/BUILD.bazel b/scripts/BUILD.bazel index 65f3f5f..c899fd4 100644 --- a/scripts/BUILD.bazel +++ b/scripts/BUILD.bazel @@ -11,7 +11,7 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -load("@rules_python//python:defs.bzl", "py_library") +load("@rules_python//python:defs.bzl", "py_binary", "py_library") package(default_visibility = ["//visibility:public"]) @@ -33,3 +33,9 @@ py_library( name = "spdx_to_github_snapshot", srcs = ["spdx_to_github_snapshot.py"], ) + +py_binary( + name = "spdx_to_github_snapshot_bin", + srcs = ["spdx_to_github_snapshot.py"], + main = "spdx_to_github_snapshot.py", +)