mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2024-10-18 02:58:06 +00:00
Serge Bazanski
939eaaaccb
Also fix a bunch of small issues in our codebase, whoops. This is ran automatically on `bazel build`. Change-Id: If49ba956b4e2380344a765c30cd84ab760fc4c68 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1849 Reviewed-by: palid <palid@hackerspace.pl>
43 lines
947 B
Python
43 lines
947 B
Python
# Gazelle settings
|
|
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
|
|
# Used by //go/workspace tests.
|
|
exports_files([
|
|
"WORKSPACE",
|
|
"default.nix",
|
|
])
|
|
|
|
# gazelle:prefix code.hackerspace.pl/hscloud
|
|
# gazelle:go_naming_convention import
|
|
# gazelle:exclude **/gomod-generated-placeholder.go
|
|
gazelle(name = "gazelle")
|
|
|
|
gazelle(
|
|
name = "gazelle-update-repos",
|
|
args = [
|
|
"-from_file=go.mod",
|
|
"-to_macro=third_party/go/repositories.bzl%go_repositories",
|
|
"-prune",
|
|
],
|
|
command = "update-repos",
|
|
)
|
|
|
|
config_setting(
|
|
name = "linux",
|
|
constraint_values = ["@bazel_tools//platforms:linux"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
|
|
|
|
buildifier(
|
|
name = "buildifier",
|
|
)
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "nogo")
|
|
|
|
nogo(
|
|
name = "nogo",
|
|
vet = True,
|
|
visibility = ["//visibility:public"], # must have public visibility
|
|
)
|