Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 1 | # Gazelle settings |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 2 | load("@bazel_gazelle//:def.bzl", "gazelle") |
| 3 | |
Serge Bazanski | a03b60b | 2023-04-01 14:47:44 +0000 | [diff] [blame] | 4 | # Used by //go/workspace tests. |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 5 | exports_files([ |
| 6 | "WORKSPACE", |
| 7 | "default.nix", |
| 8 | ]) |
Serge Bazanski | a03b60b | 2023-04-01 14:47:44 +0000 | [diff] [blame] | 9 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 10 | # gazelle:prefix code.hackerspace.pl/hscloud |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 11 | # gazelle:go_naming_convention import |
| 12 | # gazelle:exclude **/gomod-generated-placeholder.go |
| 13 | gazelle(name = "gazelle") |
| 14 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 15 | gazelle( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 16 | name = "gazelle-update-repos", |
Serge Bazanski | 81fc7d8 | 2021-10-16 22:26:47 +0000 | [diff] [blame] | 17 | args = [ |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 18 | "-from_file=go.mod", |
Serge Bazanski | 81fc7d8 | 2021-10-16 22:26:47 +0000 | [diff] [blame] | 19 | "-to_macro=third_party/go/repositories.bzl%go_repositories", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 20 | "-prune", |
Serge Bazanski | 81fc7d8 | 2021-10-16 22:26:47 +0000 | [diff] [blame] | 21 | ], |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 22 | command = "update-repos", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 23 | ) |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 24 | |
| 25 | config_setting( |
| 26 | name = "linux", |
| 27 | constraint_values = ["@bazel_tools//platforms:linux"], |
| 28 | visibility = ["//visibility:public"], |
| 29 | ) |