From e42ad50cda15ca25c7d3e6d94736c58c6d7c2599 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 20 Jan 2025 11:10:00 +0000 Subject: [PATCH] chore: Add more descriptive/precise tags to bazel build rules. --- BUILD.bazel | 10 ++++++++-- doc/BUILD.bazel | 10 ++++++++-- tools/BUILD.bazel | 10 ++++++++-- web/BUILD.bazel | 5 ++++- 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 12a2919..bcd48e6 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -9,7 +9,10 @@ haskell_library( srcs = glob(["src/Tokstyle/C/**/*.*hs"]), ghcopts = ["-j4"], src_strip_prefix = "src", - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], version = "0.0.9", visibility = ["//visibility:public"], deps = [ @@ -30,7 +33,10 @@ haskell_library( ), ghcopts = ["-j4"], src_strip_prefix = "src", - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], version = "0.0.9", visibility = ["//visibility:public"], deps = [ diff --git a/doc/BUILD.bazel b/doc/BUILD.bazel index 6c97dc8..399b8c0 100644 --- a/doc/BUILD.bazel +++ b/doc/BUILD.bazel @@ -2,7 +2,10 @@ genrule( name = "cimple_doc", outs = ["cimple.md.new"], cmd = "$(location //hs-tokstyle/tools:check-cimple) --help > $@", - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], tools = ["//hs-tokstyle/tools:check-cimple"], ) @@ -19,5 +22,8 @@ sh_test( "cimple.md", "cimple.md.new", ], - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], ) diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index c49d080..a598408 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -7,7 +7,10 @@ haskell_binary( "-rtsopts", "-threaded", ], - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], visibility = ["//visibility:public"], deps = [ "//hs-cimple", @@ -31,7 +34,10 @@ haskell_binary( "-rtsopts", "-threaded", ], - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], visibility = ["//visibility:public"], deps = [ "//hs-tokstyle:c-linters", diff --git a/web/BUILD.bazel b/web/BUILD.bazel index cf619f9..00ce9bc 100644 --- a/web/BUILD.bazel +++ b/web/BUILD.bazel @@ -3,7 +3,10 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_binary") haskell_binary( name = "webservice", srcs = glob(["**/*.hs"]), - tags = ["no-cross"], + tags = [ + "haskell", + "no-cross", + ], visibility = ["//visibility:public"], deps = [ "//hs-cimple",