File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1- package (default_visibility = ["//visibility:public" ])
2- load ("@bazel_skylib//rules:native_binary.bzl" , "native_binary" )
31load ("@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
57cc_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
1819native_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+ )
You can’t perform that action at this time.
0 commit comments