Autogenerate BUILD files

This commit is contained in:
Jeff Grafton
2017-08-09 15:45:29 -07:00
parent cce84c3e19
commit cf55f9ed45
197 changed files with 2140 additions and 591 deletions

View File

@@ -16,7 +16,12 @@ go_library(
"container_wait.go",
"host_config.go",
"hostconfig_unix.go",
],
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"hostconfig_windows.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = [
"//vendor/github.com/docker/docker/api/types/blkiodev:go_default_library",

View File

@@ -14,7 +14,6 @@ go_library(
"checkpoint_delete.go",
"checkpoint_list.go",
"client.go",
"client_unix.go",
"container_attach.go",
"container_commit.go",
"container_copy.go",
@@ -113,7 +112,18 @@ go_library(
"volume_list.go",
"volume_prune.go",
"volume_remove.go",
],
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"client_windows.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = [
"//vendor/github.com/docker/distribution/reference:go_default_library",

View File

@@ -11,13 +11,24 @@ go_library(
name = "go_default_library",
srcs = [
"flags.go",
"flags_linux.go",
"flags_unsupported.go",
"mount.go",
"mounter_linux.go",
"mounter_unsupported.go",
"mountinfo.go",
"mountinfo_linux.go",
"sharedsubtree_linux.go",
],
"mountinfo_unsupported.go",
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"flags_linux.go",
"mounter_linux.go",
"mountinfo_linux.go",
"sharedsubtree_linux.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"mountinfo_windows.go",
],
"//conditions:default": [],
}),
cgo = True,
tags = ["automanaged"],
)

View File

@@ -12,9 +12,21 @@ go_library(
srcs = [
"fs.go",
"fs_unix.go",
],
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"fs_windows.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = ["//vendor/github.com/docker/docker/pkg/system:go_default_library"],
deps = [
"//vendor/github.com/docker/docker/pkg/system:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"//vendor/github.com/docker/docker/pkg/longpath:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -17,18 +17,52 @@ go_library(
"filesys.go",
"lstat.go",
"meminfo.go",
"meminfo_linux.go",
"meminfo_unsupported.go",
"mknod.go",
"path_unix.go",
"stat.go",
"stat_linux.go",
"syscall_unix.go",
"stat_unsupported.go",
"umask.go",
"utimes_linux.go",
"xattrs_linux.go",
],
"utimes_unsupported.go",
"xattrs_unsupported.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"stat_darwin.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"meminfo_linux.go",
"stat_linux.go",
"syscall_unix.go",
"utimes_linux.go",
"xattrs_linux.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"chtimes_windows.go",
"events_windows.go",
"filesys_windows.go",
"lstat_windows.go",
"meminfo_windows.go",
"mknod_windows.go",
"path_windows.go",
"stat_windows.go",
"syscall_windows.go",
"umask_windows.go",
],
"//conditions:default": [],
}),
cgo = True,
tags = ["automanaged"],
deps = ["//vendor/github.com/docker/go-units:go_default_library"],
deps = select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"//vendor/github.com/docker/go-units:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"//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",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -24,11 +24,30 @@ go_library(
name = "go_default_library",
srcs = [
"ascii.go",
"tc_other.go",
"term.go",
"term_unix.go",
],
library = ":cgo_codegen",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"termios_darwin.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"tc_linux_cgo.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"term_windows.go",
],
"//conditions:default": [],
}),
cgo = True,
tags = ["automanaged"],
deps = select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"//vendor/github.com/Azure/go-ansiterm/winterm:go_default_library",
"//vendor/github.com/docker/docker/pkg/term/windows:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -9,12 +9,26 @@ load(
go_library(
name = "go_default_library",
srcs = ["windows.go"],
srcs = [
"windows.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"ansi_reader.go",
"ansi_writer.go",
"console.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = [
"//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": [
"//vendor/github.com/Azure/go-ansiterm/winterm:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -9,7 +9,11 @@ load(
go_library(
name = "go_default_library",
srcs = ["tlsconfig_clone.go"],
srcs = [
"tlsconfig_clone.go",
"tlsconfig_clone_go16.go",
"tlsconfig_clone_go17.go",
],
tags = ["automanaged"],
)

View File

@@ -11,7 +11,6 @@ go_library(
name = "go_default_library",
srcs = [
"client.go",
"client_unix.go",
"container_attach.go",
"container_commit.go",
"container_copy.go",
@@ -66,7 +65,18 @@ go_library(
"volume_inspect.go",
"volume_list.go",
"volume_remove.go",
],
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"client_darwin.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"client_unix.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"client_windows.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = [
"//vendor/github.com/docker/distribution/reference:go_default_library",

View File

@@ -11,6 +11,7 @@ go_library(
name = "go_default_library",
srcs = [
"canceler.go",
"canceler_go14.go",
"cancellable.go",
],
tags = ["automanaged"],

View File

@@ -13,7 +13,12 @@ go_library(
"config.go",
"host_config.go",
"hostconfig_unix.go",
],
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"hostconfig_windows.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = [
"//vendor/github.com/docker/engine-api/types/blkiodev:go_default_library",

View File

@@ -15,14 +15,28 @@ go_library(
"sockets.go",
"sockets_unix.go",
"tcp_socket.go",
"unix_socket.go",
],
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"unix_socket.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"sockets_windows.go",
],
"//conditions:default": [],
}),
tags = ["automanaged"],
deps = [
"//vendor/github.com/Sirupsen/logrus:go_default_library",
"//vendor/github.com/opencontainers/runc/libcontainer/user:go_default_library",
"//vendor/golang.org/x/net/proxy:go_default_library",
],
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"//vendor/github.com/Sirupsen/logrus:go_default_library",
"//vendor/github.com/opencontainers/runc/libcontainer/user:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"//vendor/github.com/Microsoft/go-winio:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -12,6 +12,7 @@ go_library(
srcs = [
"config.go",
"config_client_ciphers.go",
"config_legacy_client_ciphers.go",
],
tags = ["automanaged"],
deps = ["//vendor/github.com/Sirupsen/logrus:go_default_library"],