# Show us information about failures.
build --verbose_failures
test --test_output=errors

# Include git version info
build --workspace_status_command hack/print-workspace-status.sh

# Make /tmp hermetic
build --sandbox_tmpfs_path=/tmp

# Ensure that Bazel never runs as root, which can cause unit tests to fail.
# This flag requires Bazel 0.5.0+
build --sandbox_fake_username

# rules_go@82483596ec203eb9c1849937636f4cbed83733eb has a typo that
# inadvertently relies on comprehension variables leaking.
# TODO(ixdy): Remove these defaults once rules_go is bumped.
# Ref kubernetes/kubernetes#52677
build --incompatible_comprehension_variables_do_not_leak=false
query --incompatible_comprehension_variables_do_not_leak=false

# TODO(ixdy): remove the following once repo-infra is bumped.
build --incompatible_disallow_set_constructor=false
query --incompatible_disallow_set_constructor=false
