From 3871cab6e80db2cb9e2926a5d60af025036f9b25 Mon Sep 17 00:00:00 2001 From: Austin Schuh Date: Sat, 26 Jul 2025 15:10:15 -0700 Subject: [PATCH] [bazel] Use WPILIB_VERSION automatically for version template generation (#8117) --- shared/bazel/rules/gen/gen-version-file.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/bazel/rules/gen/gen-version-file.bzl b/shared/bazel/rules/gen/gen-version-file.bzl index 7ec27f3c4c..aecdb94397 100644 --- a/shared/bazel/rules/gen/gen-version-file.bzl +++ b/shared/bazel/rules/gen/gen-version-file.bzl @@ -1,9 +1,10 @@ def _generate_version_file_impl(ctx): out = ctx.actions.declare_file(ctx.attr.output_file) + wpilib_version = ctx.var.get("WPILIB_VERSION") ctx.actions.expand_template( output = out, template = ctx.file.template, - substitutions = {"${wpilib_version}": "TODO - Built with bazel"}, + substitutions = {"${wpilib_version}": wpilib_version}, ) return [DefaultInfo(files = depset([out]))]