Skip to content

Commit 60a239b

Browse files
committed
look into percli
1 parent a665cfd commit 60a239b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

x/BUILD.bazel

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
package(default_visibility = ["//visibility:public"])
2-
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
31
load("@aspect_bazel_lib//lib:copy_directory.bzl", "copy_directory")
2+
load("@aspect_bazel_lib//lib:run_binary.bzl", "run_binary")
3+
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
4+
5+
package(default_visibility = ["//visibility:public"])
46

57
cc_binary(
68
name = "x",
@@ -12,12 +14,20 @@ copy_directory(
1214
name = "dashboards_dir",
1315
src = "dashboards",
1416
out = "dashboards",
15-
hardlink = "on",
1617
)
1718

1819
native_binary(
1920
name = "perses",
2021
src = "@otel_sdk//:perses",
2122
data = ["dashboards_dir"],
22-
args = ["-config dashboards/config.yaml"],
23+
args = ["-config $(location dashboards_dir)/config.yaml"],
2324
)
25+
26+
run_binary(
27+
name = "percli",
28+
outs = ["aux"],
29+
srcs = ["dashboards_dir"],
30+
# args = ["--percliconfig $(location dashboards_dir)/config.yaml"],
31+
# args = ["migrate", "--help"],
32+
tool = "@otel_sdk//:percli",
33+
)

0 commit comments

Comments
 (0)