diff --git a/examples/bazel/.bazelrc b/examples/bazel/.bazelrc new file mode 100644 index 00000000000..6805499078e --- /dev/null +++ b/examples/bazel/.bazelrc @@ -0,0 +1,8 @@ +# The following flags are set to test use of new features for python toolchains +# These flags will only work with Bazel 0.25.0 or above. +build --incompatible_use_python_toolchains +build --host_force_python=PY2 +test --incompatible_use_python_toolchains +test --host_force_python=PY2 +run --incompatible_use_python_toolchains +run --host_force_python=PY2 diff --git a/examples/bazel/WORKSPACE b/examples/bazel/WORKSPACE index 0ed69a592d1..035fc6fd1a5 100644 --- a/examples/bazel/WORKSPACE +++ b/examples/bazel/WORKSPACE @@ -2,11 +2,12 @@ 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.7.0", - urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.7.0.tar.gz"], - sha256 = "aed1c249d4ec8f703edddf35cbe9dfaca0b5f5ea6e4cd9e83e99f3b0d1136c3d", + strip_prefix = "rules_docker-0.8.0", + urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.0.tar.gz"], + sha256 = "3556d4972571f288f8c43378295d84ed64fef5b1a875211ee1046f9f6b4258fa", ) http_archive( @@ -15,7 +16,7 @@ http_archive( sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d", ) -load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") +load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains( diff --git a/integration/examples/bazel/.bazelrc b/integration/examples/bazel/.bazelrc new file mode 100644 index 00000000000..6805499078e --- /dev/null +++ b/integration/examples/bazel/.bazelrc @@ -0,0 +1,8 @@ +# The following flags are set to test use of new features for python toolchains +# These flags will only work with Bazel 0.25.0 or above. +build --incompatible_use_python_toolchains +build --host_force_python=PY2 +test --incompatible_use_python_toolchains +test --host_force_python=PY2 +run --incompatible_use_python_toolchains +run --host_force_python=PY2 diff --git a/integration/examples/bazel/WORKSPACE b/integration/examples/bazel/WORKSPACE index 0ed69a592d1..035fc6fd1a5 100644 --- a/integration/examples/bazel/WORKSPACE +++ b/integration/examples/bazel/WORKSPACE @@ -2,11 +2,12 @@ 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.7.0", - urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.7.0.tar.gz"], - sha256 = "aed1c249d4ec8f703edddf35cbe9dfaca0b5f5ea6e4cd9e83e99f3b0d1136c3d", + strip_prefix = "rules_docker-0.8.0", + urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.0.tar.gz"], + sha256 = "3556d4972571f288f8c43378295d84ed64fef5b1a875211ee1046f9f6b4258fa", ) http_archive( @@ -15,7 +16,7 @@ http_archive( sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d", ) -load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") +load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains( diff --git a/integration/testdata/custom/.bazelrc b/integration/testdata/custom/.bazelrc new file mode 100644 index 00000000000..ae4ba1f7931 --- /dev/null +++ b/integration/testdata/custom/.bazelrc @@ -0,0 +1,8 @@ +# The following flags are set to test use of new features for python toolchains +# These flags will only work with Bazel 0.25.0 or above. +build --incompatible_use_python_toolchains +build --host_force_python=PY2 +test --incompatible_use_python_toolchains +test --host_force_python=PY2 +run --incompatible_use_python_toolchains +run --host_force_python=PY2 \ No newline at end of file diff --git a/integration/testdata/custom/WORKSPACE b/integration/testdata/custom/WORKSPACE index 0ed69a592d1..89408188a16 100644 --- a/integration/testdata/custom/WORKSPACE +++ b/integration/testdata/custom/WORKSPACE @@ -4,9 +4,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_docker", - strip_prefix = "rules_docker-0.7.0", - urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.7.0.tar.gz"], - sha256 = "aed1c249d4ec8f703edddf35cbe9dfaca0b5f5ea6e4cd9e83e99f3b0d1136c3d", + strip_prefix = "rules_docker-0.8.0", + urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.0.tar.gz"], + sha256 = "3556d4972571f288f8c43378295d84ed64fef5b1a875211ee1046f9f6b4258fa", ) http_archive( @@ -15,7 +15,7 @@ http_archive( sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d", ) -load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") +load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains(