2023-09-21 17:12:47 +00:00
|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
2023-09-24 22:06:10 +00:00
|
|
|
load("//lib:write_source_files.bzl", "write_source_files")
|
|
|
|
load("//lib:utils.bzl", "is_bazel_6_or_greater")
|
2023-01-02 00:14:48 +00:00
|
|
|
load(":release.bzl", "multi_platform_go_binaries", "release")
|
|
|
|
|
|
|
|
exports_files([
|
|
|
|
"create_release.sh",
|
2023-09-21 22:12:46 +00:00
|
|
|
"create_version.sh",
|
2023-01-02 00:14:48 +00:00
|
|
|
])
|
|
|
|
|
2023-09-21 22:12:46 +00:00
|
|
|
bzl_library(
|
2023-09-24 22:06:10 +00:00
|
|
|
name = "sri",
|
|
|
|
srcs = [":integrity.bzl"],
|
2023-09-21 22:12:46 +00:00
|
|
|
visibility = ["//lib/private/docs:__pkg__"],
|
|
|
|
)
|
|
|
|
|
2023-09-24 22:06:10 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "version",
|
|
|
|
srcs = [":version.bzl"],
|
|
|
|
visibility = ["//lib/private/docs:__pkg__"],
|
2023-09-21 22:12:46 +00:00
|
|
|
)
|
|
|
|
|
2023-09-24 22:06:10 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "hashes",
|
|
|
|
srcs = ["hashes.bzl"],
|
2023-09-21 22:12:46 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2023-01-02 00:14:48 +00:00
|
|
|
multi_platform_go_binaries(
|
|
|
|
name = "copy_to_directory",
|
|
|
|
embed = ["//tools/copy_to_directory:copy_to_directory_lib"],
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|
|
|
|
|
2023-01-14 23:51:01 +00:00
|
|
|
multi_platform_go_binaries(
|
|
|
|
name = "copy_directory",
|
|
|
|
embed = ["//tools/copy_directory:copy_directory_lib"],
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|
|
|
|
|
2023-05-16 21:56:57 +00:00
|
|
|
multi_platform_go_binaries(
|
|
|
|
name = "expand_template",
|
|
|
|
embed = ["//tools/expand_template:expand_template_lib"],
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|
|
|
|
|
2023-01-02 00:14:48 +00:00
|
|
|
release(
|
|
|
|
name = "release",
|
2023-09-24 22:06:10 +00:00
|
|
|
tags = [
|
|
|
|
"local",
|
|
|
|
"manual",
|
|
|
|
"no-remote",
|
|
|
|
],
|
2023-01-02 00:14:48 +00:00
|
|
|
targets = [
|
2023-01-14 23:51:01 +00:00
|
|
|
":copy_directory",
|
2023-01-02 00:14:48 +00:00
|
|
|
":copy_to_directory",
|
2023-06-09 23:22:37 +00:00
|
|
|
":expand_template",
|
2023-01-02 00:14:48 +00:00
|
|
|
],
|
|
|
|
)
|
2023-09-21 17:12:47 +00:00
|
|
|
|
2023-09-24 22:06:10 +00:00
|
|
|
write_source_files(
|
|
|
|
name = "releases_versions_check_in",
|
|
|
|
files = {
|
|
|
|
"integrity.bzl": ":release_versions",
|
|
|
|
},
|
|
|
|
tags = (["manual"] if not is_bazel_6_or_greater() else []),
|
2023-09-21 17:12:47 +00:00
|
|
|
)
|