2019-04-05 00:04:30 +00:00
|
|
|
package(licenses = ["notice"]) # Apache 2.0
|
|
|
|
|
2019-07-09 23:42:54 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_path", "nogo")
|
2019-06-02 06:09:26 +00:00
|
|
|
load("@bazel_gazelle//:def.bzl", "gazelle")
|
2019-04-05 00:04:30 +00:00
|
|
|
|
2018-04-27 17:37:02 +00:00
|
|
|
# The sandbox filegroup is used for sandbox-internal dependencies.
|
|
|
|
package_group(
|
|
|
|
name = "sandbox",
|
|
|
|
packages = [
|
|
|
|
"//...",
|
|
|
|
],
|
|
|
|
)
|
2019-04-05 00:04:30 +00:00
|
|
|
|
|
|
|
# gopath defines a directory that is structured in a way that is compatible
|
|
|
|
# with standard Go tools. Things like godoc, editors and refactor tools should
|
|
|
|
# work as expected.
|
|
|
|
#
|
|
|
|
# The files in this tree are symlinks to the true sources.
|
|
|
|
go_path(
|
|
|
|
name = "gopath",
|
|
|
|
mode = "link",
|
|
|
|
deps = [
|
|
|
|
"//runsc",
|
2019-10-08 20:00:06 +00:00
|
|
|
|
|
|
|
# Packages that are not dependencies of //runsc.
|
|
|
|
"//pkg/tcpip/link/channel",
|
2019-04-05 00:04:30 +00:00
|
|
|
],
|
|
|
|
)
|
2019-06-02 06:09:26 +00:00
|
|
|
|
|
|
|
# gazelle is a set of build tools.
|
|
|
|
#
|
|
|
|
# To update the WORKSPACE from go.mod, use:
|
|
|
|
# bazel run //:gazelle -- update-repos -from_file=go.mod
|
|
|
|
gazelle(name = "gazelle")
|
2019-07-09 23:42:54 +00:00
|
|
|
|
|
|
|
# nogo applies checks to all Go source in this repository, enforcing code
|
|
|
|
# guidelines and restrictions. Note that the tool libraries themselves should
|
|
|
|
# live in the tools subdirectory (unless they are standard).
|
|
|
|
nogo(
|
|
|
|
name = "nogo",
|
|
|
|
config = "tools/nogo.js",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//tools/checkunsafe",
|
|
|
|
],
|
|
|
|
)
|