2023-01-15 20:17:30 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "common",
|
|
|
|
srcs = [
|
2024-08-08 23:29:47 +00:00
|
|
|
"clonefile_darwin.go",
|
|
|
|
"clonefile_stub.go",
|
2023-01-15 20:17:30 +00:00
|
|
|
"copy.go",
|
2023-01-16 23:09:18 +00:00
|
|
|
"file.go",
|
2023-01-15 20:17:30 +00:00
|
|
|
],
|
|
|
|
importpath = "github.com/aspect-build/bazel-lib/tools/common",
|
|
|
|
visibility = ["//visibility:public"],
|
2024-08-08 23:29:47 +00:00
|
|
|
deps = select({
|
|
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
2024-08-20 18:20:51 +00:00
|
|
|
"@org_golang_x_sys//unix",
|
2024-08-08 23:29:47 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:ios": [
|
2024-08-20 18:20:51 +00:00
|
|
|
"@org_golang_x_sys//unix",
|
2024-08-08 23:29:47 +00:00
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2023-01-15 20:17:30 +00:00
|
|
|
)
|