2023-01-02 00:14:48 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "copy_to_directory_lib",
|
2023-01-15 20:17:30 +00:00
|
|
|
srcs = ["main.go"],
|
2023-01-02 00:14:48 +00:00
|
|
|
importpath = "github.com/aspect-build/bazel-lib/tools/copy_to_directory",
|
|
|
|
visibility = ["//visibility:public"],
|
2023-01-03 17:42:20 +00:00
|
|
|
deps = [
|
2023-01-15 20:17:30 +00:00
|
|
|
"//tools/common",
|
2023-01-05 22:24:24 +00:00
|
|
|
"@com_github_bmatcuk_doublestar_v4//:doublestar",
|
2023-01-03 17:42:20 +00:00
|
|
|
"@org_golang_x_exp//maps",
|
|
|
|
],
|
2023-01-02 00:14:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "copy_to_directory",
|
|
|
|
embed = [":copy_to_directory_lib"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|