forked from bazelbuild/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules_typescript_pr_508.patch
41 lines (41 loc) · 2.08 KB
/
rules_typescript_pr_508.patch
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
diff package.bzl package.bzl
index 1d77473..1bb1b03 100644
--- package.bzl
+++ package.bzl
@@ -48,9 +48,14 @@ def rules_typescript_dev_dependencies():
http_archive,
name = "io_bazel_rules_go",
patch_args = ["-p1"],
- # Patch out a breaking change to runfiles support library
- # See discussion on https://github.com/bazelbuild/rules_go/pull/2076
- patches = ["@build_bazel_rules_typescript//:revert_rules_go_commit_4442d82a001f378d0605cbbca3fb529979a1c3a6.patch"],
+ patches = [
+ # Patch out a breaking change to runfiles support library
+ # See discussion on https://github.com/bazelbuild/rules_go/pull/2076
+ "@build_bazel_rules_typescript//:revert_rules_go_commit_4442d82a001f378d0605cbbca3fb529979a1c3a6.patch",
+ # This old SHA seems no longer available on go.googlesource.com?
+ # Fetching @org_golang_x_tools; Cloning c8855242db9c1762032abe33c2dff50de3ec9d05 of https://go.googlesource.com/tools 99s
+ "@build_bazel_rules_typescript//:replace_go_googlesource_com_remote.patch",
+ ],
sha256 = "8df59f11fb697743cbb3f26cfb8750395f30471e9eabde0d174c3aebc7a1cd39",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz",
diff replace_go_googlesource_com_remote.patch replace_go_googlesource_com_remote.patch
new file mode 100644
index 0000000..8424eec
--- /dev/null
+++ replace_go_googlesource_com_remote.patch
@@ -0,0 +1,13 @@
+diff --git a/go/private/repositories.bzl b/go/private/repositories.bzl
+index 5649c31b..06f48769 100644
+--- a/go/private/repositories.bzl
++++ b/go/private/repositories.bzl
+@@ -61,7 +61,7 @@ def go_rules_dependencies():
+ _maybe(
+ git_repository,
+ name = "org_golang_x_tools",
+- remote = "https://go.googlesource.com/tools",
++ remote = "https://github.com/golang/tools.git",
+ # "latest", as of 2019-07-08
+ commit = "c8855242db9c1762032abe33c2dff50de3ec9d05",
+ shallow_since = "1562618051 +0000",