From e8ca54c36673df924340b6e3d7f8ff7008c9a2c5 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Thu, 26 Oct 2023 22:54:02 +0900 Subject: [PATCH] chore: add a 'no_match_error' to the 'select' --- BUILD.bazel | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index b23c822..90e6ef8 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -24,10 +24,13 @@ config_setting( alias( name = "shellcheck", - actual = select({ - ":darwin_x86_64": "@shellcheck_darwin_amd64//:shellcheck", - ":linux_aarch64": "@shellcheck_linux_arm64//:shellcheck", - ":linux_x86_64": "@shellcheck_linux_amd64//:shellcheck", - }), + actual = select( + { + ":darwin_x86_64": "@shellcheck_darwin_amd64//:shellcheck", + ":linux_aarch64": "@shellcheck_linux_arm64//:shellcheck", + ":linux_x86_64": "@shellcheck_linux_amd64//:shellcheck", + }, + no_match_error = "binaries for your platform could not be found", + ), visibility = ["//visibility:public"], )