2019-01-13 16:51:34 +00:00
|
|
|
# Gazelle settings
|
|
|
|
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
|
|
|
2023-04-01 14:47:44 +00:00
|
|
|
# Used by //go/workspace tests.
|
2023-07-28 17:14:50 +00:00
|
|
|
exports_files([
|
|
|
|
"WORKSPACE",
|
|
|
|
"default.nix",
|
|
|
|
])
|
2023-04-01 14:47:44 +00:00
|
|
|
|
2019-01-13 16:51:34 +00:00
|
|
|
# gazelle:prefix code.hackerspace.pl/hscloud
|
2023-07-28 17:14:50 +00:00
|
|
|
# gazelle:go_naming_convention import
|
|
|
|
# gazelle:exclude **/gomod-generated-placeholder.go
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
|
2019-01-13 16:51:34 +00:00
|
|
|
gazelle(
|
2023-07-28 17:14:50 +00:00
|
|
|
name = "gazelle-update-repos",
|
2021-10-16 22:26:47 +00:00
|
|
|
args = [
|
2023-07-28 17:14:50 +00:00
|
|
|
"-from_file=go.mod",
|
2021-10-16 22:26:47 +00:00
|
|
|
"-to_macro=third_party/go/repositories.bzl%go_repositories",
|
2023-07-28 17:14:50 +00:00
|
|
|
"-prune",
|
2021-10-16 22:26:47 +00:00
|
|
|
],
|
2023-07-28 17:14:50 +00:00
|
|
|
command = "update-repos",
|
2019-01-13 16:51:34 +00:00
|
|
|
)
|
2019-07-14 14:29:52 +00:00
|
|
|
|
|
|
|
config_setting(
|
|
|
|
name = "linux",
|
|
|
|
constraint_values = ["@bazel_tools//platforms:linux"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|