Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
using python_version to try issues with 0.25.0rc1 (#306)
Browse files Browse the repository at this point in the history
* use incompatible py toolchains flag

* update pin to  fix to rules_docker

* Update WORKSPACE

* Update WORKSPACE
  • Loading branch information
nlopezgi authored and k8s-ci-robot committed May 22, 2019
1 parent 25b705a commit 7f1b6be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@
build --workspace_status_command="bash print-workspace-status.sh"
run --workspace_status_command="bash print-workspace-status.sh"
test --test_output=errors --workspace_status_command="bash print-workspace-status.sh"

# Flags to explicitly use python toolchains to select appropriate py_runtime
# Also, force host binaries to use py2.
# Note 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

6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ http_archive(
url = "https://github.com/google/protobuf/archive/v3.7.1.tar.gz",
)

# Mention subpar directly to ensure we get a version dated after 2019-03-07,
# which included fixes for incompatible change flags added in Bazel 0.23. This
# Mention subpar directly to ensure we get version 2.0.0,
# which included fixes for incompatible change flags added in Bazel 0.25. This
# can be removed once other dependencies are updated.
git_repository(
name = "subpar",
commit = "0356bef3fbbabec5f0e196ecfacdeb6db62d48c0", # 2019-03-07
remote = "https://github.com/google/subpar.git",
tag = "2.0.0",
)

http_archive(
Expand Down
1 change: 1 addition & 0 deletions k8s/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ py_test(
data = [
"//examples/hellogrpc/cc/server:server.tar",
],
python_version = "PY2",
deps = [
":resolver_lib",
"@mock",
Expand Down

0 comments on commit 7f1b6be

Please sign in to comment.