-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
38 lines (33 loc) · 914 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_go//go:def.bzl", "nogo")
exports_files([
"WORKSPACE",
])
config_setting(
name = "windows",
constraint_values = [
"@platforms//os:windows",
],
)
nogo(
name = "vet",
vet = True,
visibility = ["//visibility:public"],
)
# Use this rule to update Go dependencies.
#
# Note: Gazelle really likes to mess with WORKSPACE, even though
# we'd like for it not too. Make sure to run git restore WORKSPACE
# after this rule.
gazelle(
name = "update-go-repos",
args = [
"-from_file=go.mod",
"-to_macro=third_party/go/deps.bzl%go_packages_",
"--build_file_proto_mode=disable_global",
],
command = "update-repos",
)