File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.1.3-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 6,324 kB
  • sloc: makefile: 175; sh: 52; ruby: 3
file content (41 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_file")
load("//cmd:cmd.bzl", "define_command_targets")

go_library(
    name = "kas_lib",
    srcs = ["main.go"],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/cmd/kas",
    visibility = ["//visibility:private"],
    deps = [
        "//cmd",
        "//cmd/kas/kasapp",
    ],
)

define_command_targets(
    name = "kas",
    arm64_targets = False,
    arm_targets = False,
    binary_embed = [":kas_lib"],
)

write_source_file(
    name = "extract_kas",
    diff_test = False,
    executable = True,
    in_file = ":kas",
    out_file = "kas",
    tags = ["manual"],
    visibility = ["//visibility:public"],
)

write_source_file(
    name = "extract_kas_race",
    diff_test = False,
    executable = True,
    in_file = ":kas_race",
    out_file = "kas_race",
    tags = ["manual"],
    visibility = ["//visibility:public"],
)