Skip to content

Commit

Permalink
Declare org_golang_x_sys in go_rules_dependencies (#1649)
Browse files Browse the repository at this point in the history
The newest version of gRPC depends on @org_golang_x_sys. Since we
provide other gRPC dependencies, we should declare this one as well.

Fixes #1648
  • Loading branch information
jayconrod authored Aug 10, 2018
1 parent 460319e commit 8473a7e
Show file tree
Hide file tree
Showing 12 changed files with 510 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/private/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ def go_rules_dependencies():
overlay = manifest["org_golang_x_text"],
# importpath = "golang.org/x/text",
)
_maybe(
git_repository,
name = "org_golang_x_sys",
remote = "https://github.com/golang/sys",
commit = "f0d5e33068cb57c22a181f5df0ffda885309eb5a", # master as of 2018-08-10
overlay = manifest["org_golang_x_sys"],
# importpath = "golang.org/x/sys",
# vcs = "git",
)
_maybe(
git_repository,
name = "org_golang_google_grpc",
Expand Down
12 changes: 12 additions & 0 deletions third_party/manifest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,18 @@ manifest = {
"@io_bazel_rules_go//third_party:org_golang_x_net/websocket/BUILD.bazel.in": "websocket/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_net/xsrftoken/BUILD.bazel.in": "xsrftoken/BUILD.bazel",
},
"org_golang_x_sys": {
"@io_bazel_rules_go//third_party:org_golang_x_sys/cpu/BUILD.bazel.in": "cpu/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/plan9/BUILD.bazel.in": "plan9/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/unix/BUILD.bazel.in": "unix/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/BUILD.bazel.in": "windows/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/registry/BUILD.bazel.in": "windows/registry/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/svc/BUILD.bazel.in": "windows/svc/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/svc/debug/BUILD.bazel.in": "windows/svc/debug/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/svc/eventlog/BUILD.bazel.in": "windows/svc/eventlog/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/svc/example/BUILD.bazel.in": "windows/svc/example/BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_sys/windows/svc/mgr/BUILD.bazel.in": "windows/svc/mgr/BUILD.bazel",
},
"org_golang_x_text": {
"@io_bazel_rules_go//third_party:org_golang_x_text/BUILD.bazel.in": "BUILD.bazel",
"@io_bazel_rules_go//third_party:org_golang_x_text/cases/BUILD.bazel.in": "cases/BUILD.bazel",
Expand Down
25 changes: 25 additions & 0 deletions third_party/org_golang_x_sys/cpu/BUILD.bazel.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "go_default_library",
srcs = [
"cpu.go",
"cpu_arm.go",
"cpu_arm64.go",
"cpu_gc_x86.go",
"cpu_mips64x.go",
"cpu_mipsx.go",
"cpu_ppc64x.go",
"cpu_s390x.go",
"cpu_x86.go",
"cpu_x86.s",
],
importpath = "golang.org/x/sys/cpu",
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = ["cpu_test.go"],
embed = [":go_default_library"],
)
34 changes: 34 additions & 0 deletions third_party/org_golang_x_sys/plan9/BUILD.bazel.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "go_default_library",
srcs = [
"asm.s",
"asm_plan9_386.s",
"asm_plan9_amd64.s",
"asm_plan9_arm.s",
"const_plan9.go",
"dir_plan9.go",
"env_plan9.go",
"errors_plan9.go",
"pwd_go15_plan9.go",
"pwd_plan9.go",
"race.go",
"race0.go",
"str.go",
"syscall.go",
"syscall_plan9.go",
"zsyscall_plan9_386.go",
"zsyscall_plan9_amd64.go",
"zsyscall_plan9_arm.go",
"zsysnum_plan9.go",
],
importpath = "golang.org/x/sys/plan9",
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = ["syscall_test.go"],
embed = [":go_default_library"],
)
233 changes: 233 additions & 0 deletions third_party/org_golang_x_sys/unix/BUILD.bazel.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "go_default_library",
srcs = [
"affinity_linux.go",
"aliases.go",
"asm_darwin_386.s",
"asm_darwin_amd64.s",
"asm_darwin_arm.s",
"asm_darwin_arm64.s",
"asm_dragonfly_amd64.s",
"asm_freebsd_386.s",
"asm_freebsd_amd64.s",
"asm_freebsd_arm.s",
"asm_linux_386.s",
"asm_linux_amd64.s",
"asm_linux_arm.s",
"asm_linux_arm64.s",
"asm_linux_mips64x.s",
"asm_linux_mipsx.s",
"asm_linux_ppc64x.s",
"asm_linux_s390x.s",
"asm_netbsd_386.s",
"asm_netbsd_amd64.s",
"asm_netbsd_arm.s",
"asm_openbsd_386.s",
"asm_openbsd_amd64.s",
"asm_openbsd_arm.s",
"asm_solaris_amd64.s",
"bluetooth_linux.go",
"cap_freebsd.go",
"constants.go",
"dev_darwin.go",
"dev_dragonfly.go",
"dev_freebsd.go",
"dev_linux.go",
"dev_netbsd.go",
"dev_openbsd.go",
"dirent.go",
"endian_big.go",
"endian_little.go",
"env_unix.go",
"errors_freebsd_386.go",
"errors_freebsd_amd64.go",
"errors_freebsd_arm.go",
"fcntl.go",
"fcntl_linux_32bit.go",
"ioctl.go",
"openbsd_pledge.go",
"pagesize_unix.go",
"race.go",
"race0.go",
"sockcmsg_linux.go",
"sockcmsg_unix.go",
"str.go",
"syscall.go",
"syscall_bsd.go",
"syscall_darwin.go",
"syscall_darwin_386.go",
"syscall_darwin_amd64.go",
"syscall_darwin_arm.go",
"syscall_darwin_arm64.go",
"syscall_dragonfly.go",
"syscall_dragonfly_amd64.go",
"syscall_freebsd.go",
"syscall_freebsd_386.go",
"syscall_freebsd_amd64.go",
"syscall_freebsd_arm.go",
"syscall_linux.go",
"syscall_linux_386.go",
"syscall_linux_amd64.go",
"syscall_linux_amd64_gc.go",
"syscall_linux_arm.go",
"syscall_linux_arm64.go",
"syscall_linux_gc.go",
"syscall_linux_gc_386.go",
"syscall_linux_mips64x.go",
"syscall_linux_mipsx.go",
"syscall_linux_ppc64x.go",
"syscall_linux_s390x.go",
"syscall_netbsd.go",
"syscall_netbsd_386.go",
"syscall_netbsd_amd64.go",
"syscall_netbsd_arm.go",
"syscall_openbsd.go",
"syscall_openbsd_386.go",
"syscall_openbsd_amd64.go",
"syscall_openbsd_arm.go",
"syscall_solaris.go",
"syscall_solaris_amd64.go",
"syscall_unix.go",
"syscall_unix_gc.go",
"timestruct.go",
"xattr_bsd.go",
"zerrors_darwin_386.go",
"zerrors_darwin_amd64.go",
"zerrors_darwin_arm.go",
"zerrors_darwin_arm64.go",
"zerrors_dragonfly_amd64.go",
"zerrors_freebsd_386.go",
"zerrors_freebsd_amd64.go",
"zerrors_freebsd_arm.go",
"zerrors_linux_386.go",
"zerrors_linux_amd64.go",
"zerrors_linux_arm.go",
"zerrors_linux_arm64.go",
"zerrors_linux_mips.go",
"zerrors_linux_mips64.go",
"zerrors_linux_mips64le.go",
"zerrors_linux_mipsle.go",
"zerrors_linux_ppc64.go",
"zerrors_linux_ppc64le.go",
"zerrors_linux_s390x.go",
"zerrors_netbsd_386.go",
"zerrors_netbsd_amd64.go",
"zerrors_netbsd_arm.go",
"zerrors_openbsd_386.go",
"zerrors_openbsd_amd64.go",
"zerrors_openbsd_arm.go",
"zerrors_solaris_amd64.go",
"zptrace386_linux.go",
"zptracearm_linux.go",
"zptracemips_linux.go",
"zptracemipsle_linux.go",
"zsyscall_darwin_386.go",
"zsyscall_darwin_amd64.go",
"zsyscall_darwin_arm.go",
"zsyscall_darwin_arm64.go",
"zsyscall_dragonfly_amd64.go",
"zsyscall_freebsd_386.go",
"zsyscall_freebsd_amd64.go",
"zsyscall_freebsd_arm.go",
"zsyscall_linux_386.go",
"zsyscall_linux_amd64.go",
"zsyscall_linux_arm.go",
"zsyscall_linux_arm64.go",
"zsyscall_linux_mips.go",
"zsyscall_linux_mips64.go",
"zsyscall_linux_mips64le.go",
"zsyscall_linux_mipsle.go",
"zsyscall_linux_ppc64.go",
"zsyscall_linux_ppc64le.go",
"zsyscall_linux_s390x.go",
"zsyscall_netbsd_386.go",
"zsyscall_netbsd_amd64.go",
"zsyscall_netbsd_arm.go",
"zsyscall_openbsd_386.go",
"zsyscall_openbsd_amd64.go",
"zsyscall_openbsd_arm.go",
"zsyscall_solaris_amd64.go",
"zsysctl_openbsd_386.go",
"zsysctl_openbsd_amd64.go",
"zsysctl_openbsd_arm.go",
"zsysnum_darwin_386.go",
"zsysnum_darwin_amd64.go",
"zsysnum_darwin_arm.go",
"zsysnum_darwin_arm64.go",
"zsysnum_dragonfly_amd64.go",
"zsysnum_freebsd_386.go",
"zsysnum_freebsd_amd64.go",
"zsysnum_freebsd_arm.go",
"zsysnum_linux_386.go",
"zsysnum_linux_amd64.go",
"zsysnum_linux_arm.go",
"zsysnum_linux_arm64.go",
"zsysnum_linux_mips.go",
"zsysnum_linux_mips64.go",
"zsysnum_linux_mips64le.go",
"zsysnum_linux_mipsle.go",
"zsysnum_linux_ppc64.go",
"zsysnum_linux_ppc64le.go",
"zsysnum_linux_s390x.go",
"zsysnum_netbsd_386.go",
"zsysnum_netbsd_amd64.go",
"zsysnum_netbsd_arm.go",
"zsysnum_openbsd_386.go",
"zsysnum_openbsd_amd64.go",
"zsysnum_openbsd_arm.go",
"ztypes_darwin_386.go",
"ztypes_darwin_amd64.go",
"ztypes_darwin_arm.go",
"ztypes_darwin_arm64.go",
"ztypes_dragonfly_amd64.go",
"ztypes_freebsd_386.go",
"ztypes_freebsd_amd64.go",
"ztypes_freebsd_arm.go",
"ztypes_linux_386.go",
"ztypes_linux_amd64.go",
"ztypes_linux_arm.go",
"ztypes_linux_arm64.go",
"ztypes_linux_mips.go",
"ztypes_linux_mips64.go",
"ztypes_linux_mips64le.go",
"ztypes_linux_mipsle.go",
"ztypes_linux_ppc64.go",
"ztypes_linux_ppc64le.go",
"ztypes_linux_s390x.go",
"ztypes_netbsd_386.go",
"ztypes_netbsd_amd64.go",
"ztypes_netbsd_arm.go",
"ztypes_openbsd_386.go",
"ztypes_openbsd_amd64.go",
"ztypes_openbsd_arm.go",
"ztypes_solaris_amd64.go",
],
cgo = True,
importpath = "golang.org/x/sys/unix",
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = [
"creds_test.go",
"dev_linux_test.go",
"example_test.go",
"export_test.go",
"mmap_unix_test.go",
"openbsd_test.go",
"syscall_bsd_test.go",
"syscall_darwin_test.go",
"syscall_freebsd_test.go",
"syscall_linux_test.go",
"syscall_netbsd_test.go",
"syscall_solaris_test.go",
"syscall_test.go",
"syscall_unix_test.go",
"timestruct_test.go",
"xattr_test.go",
],
embed = [":go_default_library"],
)
38 changes: 38 additions & 0 deletions third_party/org_golang_x_sys/windows/BUILD.bazel.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "go_default_library",
srcs = [
"aliases.go",
"asm_windows_386.s",
"asm_windows_amd64.s",
"dll_windows.go",
"env_windows.go",
"eventlog.go",
"exec_windows.go",
"memory_windows.go",
"mksyscall.go",
"race.go",
"race0.go",
"security_windows.go",
"service.go",
"str.go",
"syscall.go",
"syscall_windows.go",
"types_windows.go",
"types_windows_386.go",
"types_windows_amd64.go",
"zsyscall_windows.go",
],
importpath = "golang.org/x/sys/windows",
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = [
"syscall_test.go",
"syscall_windows_test.go",
],
embed = [":go_default_library"],
)
29 changes: 29 additions & 0 deletions third_party/org_golang_x_sys/windows/registry/BUILD.bazel.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "go_default_library",
srcs = [
"key.go",
"mksyscall.go",
"syscall.go",
"value.go",
"zsyscall_windows.go",
],
importpath = "golang.org/x/sys/windows/registry",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:windows": [
"//windows:go_default_library",
],
"//conditions:default": [],
}),
)

go_test(
name = "go_default_test",
srcs = [
"export_test.go",
"registry_test.go",
],
embed = [":go_default_library"],
)
Loading

0 comments on commit 8473a7e

Please sign in to comment.