Skip to content

Commit

Permalink
bazel: add mirror for gosdk (#38275)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Nov 28, 2022
1 parent 03034b6 commit 50bcb52
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ http_archive(
],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("//:DEPS.bzl", "go_deps")

Expand All @@ -27,9 +27,19 @@ go_deps()

go_rules_dependencies()

go_download_sdk(
name = "go_sdk",
urls = [
"http://ats.apps.svc/golang/{}",
"http://bazel-cache.pingcap.net:8080/golang/{}",
"https://mirrors.aliyun.com/golang/{}",
"https://dl.google.com/go/{}",
],
version = "1.19.3",
)

go_register_toolchains(
nogo = "@//build:tidb_nogo",
version = "1.19.3",
)

gazelle_dependencies()
Expand Down

0 comments on commit 50bcb52

Please sign in to comment.