2023-07-31 14:49:40 -07:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test")
|
2020-10-19 16:26:42 -07:00
|
|
|
|
2023-03-02 10:46:34 -08:00
|
|
|
package(
|
|
|
|
|
default_applicable_licenses = ["//:license"],
|
|
|
|
|
licenses = ["notice"],
|
|
|
|
|
)
|
2020-10-19 16:26:42 -07:00
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
|
name = "cli",
|
|
|
|
|
srcs = ["main.go"],
|
|
|
|
|
visibility = [
|
|
|
|
|
"//:__pkg__",
|
|
|
|
|
"//runsc:__pkg__",
|
|
|
|
|
],
|
|
|
|
|
deps = [
|
2021-04-16 17:52:12 -07:00
|
|
|
"//pkg/coverage",
|
2020-10-19 16:26:42 -07:00
|
|
|
"//pkg/log",
|
|
|
|
|
"//pkg/refs",
|
|
|
|
|
"//pkg/sentry/platform",
|
2023-02-27 14:25:58 -08:00
|
|
|
"//pkg/sentry/syscalls/linux",
|
2020-10-19 16:26:42 -07:00
|
|
|
"//runsc/cmd",
|
2023-10-30 15:19:06 -07:00
|
|
|
"//runsc/cmd/nvproxy",
|
2022-05-10 13:33:57 -07:00
|
|
|
"//runsc/cmd/trace",
|
2022-05-06 09:37:50 -07:00
|
|
|
"//runsc/cmd/util",
|
2020-10-19 16:26:42 -07:00
|
|
|
"//runsc/config",
|
|
|
|
|
"//runsc/flag",
|
|
|
|
|
"//runsc/specutils",
|
2024-06-25 17:44:54 -07:00
|
|
|
"//runsc/starttime",
|
2023-03-23 17:09:41 -07:00
|
|
|
"//runsc/version",
|
2020-10-19 16:26:42 -07:00
|
|
|
"@com_github_google_subcommands//:go_default_library",
|
2021-03-06 22:04:58 -08:00
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
2020-10-19 16:26:42 -07:00
|
|
|
],
|
|
|
|
|
)
|
2023-07-31 14:49:40 -07:00
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
|
name = "cli_test",
|
|
|
|
|
srcs = ["cli_test.go"],
|
|
|
|
|
library = ":cli",
|
|
|
|
|
deps = [
|
|
|
|
|
"//runsc/flag",
|
|
|
|
|
"@com_github_google_subcommands//:go_default_library",
|
|
|
|
|
],
|
|
|
|
|
)
|