Skip to content

Commit

Permalink
Move IPv6 flags into .bazelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
fweikert committed May 21, 2024
1 parent 2f823b1 commit 67ff409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,7 @@ test:ci-windows --test_env=JAVA_HOME
test:ci-windows --test_env=TEST_INSTALL_BASE=C:/b/bazeltest_install_base
test:ci-windows --test_env=REPOSITORY_CACHE=C:/b/bazeltest_repo_cache
test:ci-windows --test_tag_filters=-no_windows,-slow

## TESTING
startup --host_jvm_args=-Djava.net.preferIPv6Addresses=true
build --jvmopt=-Djava.net.preferIPv6Addresses
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ genrule(
# Instead of `bazel mod deps`, we run a simpler command like `bazel query :all` here
# so that we only trigger module resolution, not extension eval.
# Also use `--batch` so that Bazel doesn't keep a server process alive.
"$$ROOT/$(location //src:bazel) --host_jvm_args=-Djava.net.preferIPv6Addresses=true --batch --output_user_root=$$TMPDIR/output_user_root query --check_direct_dependencies=error --lockfile_mode=update :all",
"$$ROOT/$(location //src:bazel) --batch --output_user_root=$$TMPDIR/output_user_root query --check_direct_dependencies=error --lockfile_mode=update :all",
"mv MODULE.bazel.lock $$ROOT/$@",
]),
tags = ["requires-network"],
Expand Down

0 comments on commit 67ff409

Please sign in to comment.