blob: 0eed08db11c2364ad6f53f1e8b89a8563417f3cd [file] [log] [blame] [edit]
load("@rules_pkg//:pkg.bzl", "pkg_tar")
exports_files(
srcs = ["go_test.bzl"],
visibility = ["//visibility:public"],
)
pkg_tar(
name = "go_toolchain_tar",
srcs = ["@go_sdk//:files"],
# It seems like we should be able to use:
#
# strip_prefix = "external/rules_go++go_sdk+go_default_sdk",
# package_dir = "go",
#
# But strip_prefix doesn't seem to work in this case. Therefore, we use
# remap_paths in combination with strip_prefix (to preserve the directory
# structure), which does work.
remap_paths = {"external/rules_go++go_sdk+go_default_sdk/": "go/"},
strip_prefix = ".", # Preserve the folder structure.
visibility = ["//visibility:public"],
)