-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
142 lines (108 loc) · 4.54 KB
/
WORKSPACE
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
workspace(name = "cats_n_pups")
# http_archive(
# name = "io_bazel_rules_go",
# url = "https://github.com/bazelbuild/rules_go/releases/download/0.10.1/rules_go-0.10.1.tar.gz",
# sha256 = "4b14d8dd31c6dbaf3ff871adcd03f28c3274e42abc855cb8fb4d01233c0154dc",
# )
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/archive/63cd14e0e7db10411bc64a4c870398608435a23d.zip",
strip_prefix = "rules_go-63cd14e0e7db10411bc64a4c870398608435a23d/",
sha256 = "130dde139d7601819b30bc918aee5d9b47c802dc5790ede366231404bddf94f5",
)
# http_archive(
# name = "io_bazel_rules_go",
# url = "https://github.com/kellycampbell/rules_go/archive/1800f16118021a2736b9d7dac920751a344cdb2d.zip",
# strip_prefix = "rules_go-1800f16118021a2736b9d7dac920751a344cdb2d/",
# sha256 = "18ca5c0de2f44640b5da4270080565bff4b29d7451692671ad0adcd64ba73e01",
# )
# http_archive(
# name = "bazel_gazelle",
# url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.10.0/bazel-gazelle-0.10.0.tar.gz",
# sha256 = "6228d9618ab9536892aa69082c063207c91e777e51bd3c5544c9c060cafe1bd8",
# )
http_archive(
name = "bazel_gazelle",
url = "https://github.com/bazelbuild/bazel-gazelle/archive/f4ae892927eeabd060c59693c38e82303f41558d.zip",
strip_prefix = "bazel-gazelle-f4ae892927eeabd060c59693c38e82303f41558d/",
sha256 = "cb8ae1c87ecfbd3b22112cadd7bf940bf8f0ef1207eebdb86e9b3e05ff89513d",
)
new_http_archive(
name = "com_github_googleapis",
url = "https://github.com/googleapis/googleapis/archive/3da9235eeef5357b8704a7c0a88c7b75a9e6ad35.zip",
strip_prefix = "googleapis-3da9235eeef5357b8704a7c0a88c7b75a9e6ad35/",
build_file = "tools/googleapis.bzl"
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_repository")
go_rules_dependencies()
go_register_toolchains()
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
go_repository(
name = "com_github_grpc_ecosystem_grpc_gateway",
importpath = "github.com/grpc-ecosystem/grpc-gateway",
remote = "[email protected]:grpc-ecosystem/grpc-gateway.git",
vcs = "git",
commit = "58f78b988bc393694cef62b92c5cde77e4742ff5",
build_file_proto_mode = "legacy",
)
# =========================================
# Python imports
# =========================================
git_repository(
name = "org_pubref_rules_protobuf",
remote = "https://github.com/kellycampbell/rules_protobuf",
commit = "7c8c80b61e3a0bc30fd61302d781a317524b0167" # 3/15/18
)
http_archive(
name = "io_bazel_rules_python",
url = "https://github.com/bazelbuild/rules_python/archive/115e3a0dab4291184fdcb0d4e564a0328364571a.zip",
strip_prefix = "rules_python-115e3a0dab4291184fdcb0d4e564a0328364571a",
sha256 = "9f56b0df4aa0b71b3c885b3457709f3e8a6b8b4ba955e95f85fde6f198c7bf6c",
)
load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories")
py_proto_repositories()
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
pip_repositories()
pip_import(
name = "pip_grpcio",
requirements = "@org_pubref_rules_protobuf//python:requirements.txt",
)
load("@pip_grpcio//:requirements.bzl", pip_grpcio_install = "pip_install")
pip_grpcio_install()
new_http_archive(
name = "six_archive",
build_file = "@com_google_protobuf//:six.BUILD",
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55",
)
bind(
name = "python_headers",
actual = "@com_google_protobuf//util/python:python_headers",
)
bind(
name = "six",
actual = "@six_archive//:six",
)
# =========================================
# NodeJS and Typescript Imports
# =========================================
git_repository(
name = "build_bazel_rules_nodejs",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
commit = "a67f2be208e84335e78ddfb68f5bbce2750a7b4a" # 03/18/2018
)
# git_repository(
# name = "build_bazel_rules_typescript",
# remote = "https://github.com/bazelbuild/rules_typescript.git",
# commit = "3bfca0624df383e31cff697c7a07d229f9179e05" # 03/18/2018
# )
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "npm_install")
node_repositories(package_json = ["//:package.json"])
npm_install(
name = "hello",
# This can also take package.json
package_json = "//:package-lock.json",
)
# load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace")
# ts_setup_workspace()