github.com/distbuild/reclient@v0.0.0-20240401075343-3de72e395564/internal/pkg/inputprocessor/toolchain/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "toolchain", 5 srcs = [ 6 "inputfiles.go", 7 "toolchain.go", 8 ], 9 importpath = "github.com/bazelbuild/reclient/internal/pkg/inputprocessor/toolchain", 10 visibility = ["//:__subpackages__"], 11 deps = [ 12 "//internal/pkg/pathtranslator", 13 "@com_github_bazelbuild_remote_apis_sdks//go/pkg/cache", 14 "@com_github_bazelbuild_remote_apis_sdks//go/pkg/command", 15 "@com_github_bazelbuild_remote_apis_sdks//go/pkg/filemetadata", 16 "@com_github_golang_glog//:glog", 17 ], 18 ) 19 20 go_test( 21 name = "toolchain_test", 22 size = "small", 23 srcs = ["toolchain_test.go"], 24 data = glob([ 25 "testdata/*", 26 "testdata2/*", 27 ]), 28 embed = [":toolchain"], 29 deps = [ 30 "@com_github_bazelbuild_remote_apis_sdks//go/pkg/command", 31 "@com_github_bazelbuild_remote_apis_sdks//go/pkg/filemetadata", 32 "@com_github_google_go_cmp//cmp", 33 "@io_bazel_rules_go//go/tools/bazel:go_default_library", 34 ], 35 )