blob: 69fd2183c60300db3445816b6b9e803c5d15511c [file] [log] [blame]
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +01001# Gazelle settings
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +01002load("@bazel_gazelle//:def.bzl", "gazelle")
3
Serge Bazanskia03b60b2023-04-01 14:47:44 +00004# Used by //go/workspace tests.
Serge Bazanski97b5cd72023-07-28 17:14:50 +00005exports_files([
6 "WORKSPACE",
7 "default.nix",
8])
Serge Bazanskia03b60b2023-04-01 14:47:44 +00009
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +010010# gazelle:prefix code.hackerspace.pl/hscloud
Serge Bazanski97b5cd72023-07-28 17:14:50 +000011# gazelle:go_naming_convention import
12# gazelle:exclude **/gomod-generated-placeholder.go
13gazelle(name = "gazelle")
14
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +010015gazelle(
Serge Bazanski97b5cd72023-07-28 17:14:50 +000016 name = "gazelle-update-repos",
Serge Bazanski81fc7d82021-10-16 22:26:47 +000017 args = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +000018 "-from_file=go.mod",
Serge Bazanski81fc7d82021-10-16 22:26:47 +000019 "-to_macro=third_party/go/repositories.bzl%go_repositories",
Serge Bazanski97b5cd72023-07-28 17:14:50 +000020 "-prune",
Serge Bazanski81fc7d82021-10-16 22:26:47 +000021 ],
Serge Bazanski97b5cd72023-07-28 17:14:50 +000022 command = "update-repos",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +010023)
Serge Bazanski2ce36762019-07-14 16:29:52 +020024
25config_setting(
26 name = "linux",
27 constraint_values = ["@bazel_tools//platforms:linux"],
28 visibility = ["//visibility:public"],
29)