diff --git a/examples/bazel/WORKSPACE b/examples/bazel/WORKSPACE index 035fc6fd1a5..095a2e3f96b 100644 --- a/examples/bazel/WORKSPACE +++ b/examples/bazel/WORKSPACE @@ -2,30 +2,39 @@ workspace(name = "skaffold") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - http_archive( name = "io_bazel_rules_docker", - strip_prefix = "rules_docker-0.8.0", - urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.0.tar.gz"], - sha256 = "3556d4972571f288f8c43378295d84ed64fef5b1a875211ee1046f9f6b4258fa", + sha256 = "df13123c44b4a4ff2c2f337b906763879d94871d16411bf82dcfeba892b58607", + strip_prefix = "rules_docker-0.13.0", + urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.13.0/rules_docker-v0.13.0.tar.gz"], ) http_archive( name = "io_bazel_rules_go", - urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz"], - sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz", + ], + sha256 = "e88471aea3a3a4f19ec1310a55ba94772d087e9ce46e41ae38ecebe17935de7b", ) load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains( - go_version = "1.10.1", + go_version = "1.13.5", ) +load( + "@io_bazel_rules_docker//repositories:repositories.bzl", + container_repositories = "repositories", +) + +container_repositories() + load( "@io_bazel_rules_docker//go:image.bzl", _go_image_repos = "repositories", ) -_go_image_repos() +_go_image_repos() \ No newline at end of file diff --git a/integration/examples/bazel/WORKSPACE b/integration/examples/bazel/WORKSPACE index 035fc6fd1a5..095a2e3f96b 100644 --- a/integration/examples/bazel/WORKSPACE +++ b/integration/examples/bazel/WORKSPACE @@ -2,30 +2,39 @@ workspace(name = "skaffold") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - http_archive( name = "io_bazel_rules_docker", - strip_prefix = "rules_docker-0.8.0", - urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.0.tar.gz"], - sha256 = "3556d4972571f288f8c43378295d84ed64fef5b1a875211ee1046f9f6b4258fa", + sha256 = "df13123c44b4a4ff2c2f337b906763879d94871d16411bf82dcfeba892b58607", + strip_prefix = "rules_docker-0.13.0", + urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.13.0/rules_docker-v0.13.0.tar.gz"], ) http_archive( name = "io_bazel_rules_go", - urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz"], - sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz", + ], + sha256 = "e88471aea3a3a4f19ec1310a55ba94772d087e9ce46e41ae38ecebe17935de7b", ) load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains( - go_version = "1.10.1", + go_version = "1.13.5", ) +load( + "@io_bazel_rules_docker//repositories:repositories.bzl", + container_repositories = "repositories", +) + +container_repositories() + load( "@io_bazel_rules_docker//go:image.bzl", _go_image_repos = "repositories", ) -_go_image_repos() +_go_image_repos() \ No newline at end of file