Autogenerate BUILD files

This commit is contained in:
Jeff Grafton
2017-12-23 13:06:26 -08:00
parent b13263eeb3
commit efee0704c6
825 changed files with 6006 additions and 1311 deletions

View File

@@ -4,10 +4,39 @@ go_library(
name = "go_default_library",
srcs = [
"common.go",
"common_unix.go",
"names.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"common_unix.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"common_windows.go",
],
"//conditions:default": [],

View File

@@ -10,10 +10,39 @@ go_library(
"container_update.go",
"container_wait.go",
"host_config.go",
"hostconfig_unix.go",
"waitcondition.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"hostconfig_unix.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"hostconfig_windows.go",
],
"//conditions:default": [],

View File

@@ -116,13 +116,22 @@ go_library(
"volume_prune.go",
"volume_remove.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"@io_bazel_rules_go//go/platform:darwin": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:freebsd": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:linux": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"client_windows.go",
],
"//conditions:default": [],

View File

@@ -7,11 +7,40 @@ go_library(
"bytespipe.go",
"fswriters.go",
"readers.go",
"temp_unix.go",
"writeflusher.go",
"writers.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"temp_unix.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"temp_windows.go",
],
"//conditions:default": [],
@@ -21,7 +50,7 @@ go_library(
deps = [
"//vendor/golang.org/x/net/context:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/docker/docker/pkg/longpath:go_default_library",
],
"//conditions:default": [],

View File

@@ -4,19 +4,69 @@ go_library(
name = "go_default_library",
srcs = [
"flags.go",
"flags_unsupported.go",
"mount.go",
"mounter_unsupported.go",
"mountinfo.go",
"mountinfo_unsupported.go",
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"flags_freebsd.go",
"flags_unsupported.go",
"mounter_freebsd.go",
"mounter_unsupported.go",
"mountinfo_freebsd.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"flags_linux.go",
"mounter_linux.go",
"mountinfo_linux.go",
"sharedsubtree_linux.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:nacl": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_unsupported.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"flags_unsupported.go",
"mounter_solaris.go",
"mounter_unsupported.go",
"mountinfo_solaris.go",
"mountinfo_unsupported.go",
"sharedsubtree_solaris.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"flags_unsupported.go",
"mounter_unsupported.go",
"mountinfo_windows.go",
],
"//conditions:default": [],
@@ -25,7 +75,13 @@ go_library(
importpath = "github.com/docker/docker/pkg/mount",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"//conditions:default": [],

View File

@@ -4,9 +4,38 @@ go_library(
name = "go_default_library",
srcs = [
"fs.go",
"fs_unix.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"fs_unix.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"fs_windows.go",
],
"//conditions:default": [],
@@ -16,7 +45,7 @@ go_library(
deps = [
"//vendor/github.com/docker/docker/pkg/system:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/docker/docker/pkg/longpath:go_default_library",
"//vendor/golang.org/x/sys/windows:go_default_library",
],

View File

@@ -4,37 +4,155 @@ go_library(
name = "go_default_library",
srcs = [
"chtimes.go",
"chtimes_unix.go",
"errors.go",
"exitcode.go",
"filesys.go",
"init.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo.go",
"meminfo_unsupported.go",
"mknod.go",
"path.go",
"path_unix.go",
"rm.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"process_unix.go",
"stat_darwin.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:dragonfly": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"process_unix.go",
"stat_freebsd.go",
"stat_unix.go",
"syscall_unix.go",
"umask.go",
"utimes_freebsd.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_linux.go",
"mknod.go",
"path_unix.go",
"process_unix.go",
"stat_linux.go",
"stat_unix.go",
"syscall_unix.go",
"umask.go",
"utimes_linux.go",
"xattrs_linux.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:nacl": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat_openbsd.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"chtimes_unix.go",
"filesys.go",
"lcow_unix.go",
"lstat_unix.go",
"meminfo_solaris.go",
"mknod.go",
"path_unix.go",
"process_unix.go",
"stat_solaris.go",
"stat_unix.go",
"umask.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"chtimes_windows.go",
"events_windows.go",
"filesys_windows.go",
@@ -47,21 +165,62 @@ go_library(
"stat_windows.go",
"syscall_windows.go",
"umask_windows.go",
"utimes_unsupported.go",
"xattrs_unsupported.go",
],
"//conditions:default": [],
}),
cgo = True,
clinkopts = select({
"@io_bazel_rules_go//go/platform:solaris": [
"-lkstat",
],
"//conditions:default": [],
}),
copts = select({
"@io_bazel_rules_go//go/platform:solaris": [
"-std=c99",
],
"//conditions:default": [],
}),
importpath = "github.com/docker/docker/pkg/system",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/docker/docker/pkg/mount:go_default_library",
"//vendor/github.com/pkg/errors:go_default_library",
"//vendor/golang.org/x/sys/unix:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"//vendor/github.com/docker/go-units:go_default_library",
"@io_bazel_rules_go//go/platform:android": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:darwin": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/github.com/docker/go-units:go_default_library",
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:nacl": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:plan9": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/Microsoft/go-winio:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
"//vendor/golang.org/x/sys/windows:go_default_library",

View File

@@ -5,17 +5,63 @@ go_library(
srcs = [
"ascii.go",
"proxy.go",
"tc.go",
"term.go",
"winsize.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"tc.go",
"term.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"tc.go",
"term.go",
"termios_bsd.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:dragonfly": [
"tc.go",
"term.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"tc.go",
"term.go",
"termios_bsd.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"tc.go",
"term.go",
"termios_linux.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:nacl": [
"tc.go",
"term.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"tc.go",
"term.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"tc.go",
"term.go",
"termios_bsd.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"tc.go",
"term.go",
"winsize.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"tc.go",
"tc_solaris_cgo.go",
"term.go",
"winsize_solaris_cgo.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"term_windows.go",
],
"//conditions:default": [],
@@ -23,10 +69,38 @@ go_library(
cgo = True,
importpath = "github.com/docker/docker/pkg/term",
visibility = ["//visibility:public"],
deps = [
"//vendor/golang.org/x/sys/unix:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
deps = select({
"@io_bazel_rules_go//go/platform:android": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:darwin": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:nacl": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:plan9": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/Azure/go-ansiterm/winterm:go_default_library",
"//vendor/github.com/docker/docker/pkg/term/windows:go_default_library",
],

View File

@@ -5,7 +5,7 @@ go_library(
srcs = [
"windows.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows": [
"ansi_reader.go",
"ansi_writer.go",
"console.go",
@@ -18,7 +18,7 @@ go_library(
"//vendor/github.com/Azure/go-ansiterm:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/Azure/go-ansiterm/winterm:go_default_library",
],
"//conditions:default": [],

View File

@@ -6,11 +6,49 @@ go_library(
"inmem_socket.go",
"proxy.go",
"sockets.go",
"sockets_unix.go",
"tcp_socket.go",
"unix_socket.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"sockets_unix.go",
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"sockets_windows.go",
],
"//conditions:default": [],
@@ -20,7 +58,7 @@ go_library(
deps = [
"//vendor/golang.org/x/net/proxy:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/Microsoft/go-winio:go_default_library",
],
"//conditions:default": [],

View File

@@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:linux": [
"constants.go",
"ipvs.go",
"netlink.go",
@@ -13,7 +13,7 @@ go_library(
importpath = "github.com/docker/libnetwork/ipvs",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/github.com/sirupsen/logrus:go_default_library",
"//vendor/github.com/vishvananda/netlink/nl:go_default_library",
"//vendor/github.com/vishvananda/netns:go_default_library",