Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 46 additions & 18 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,51 @@
build --define=scala_deps_direct=error
build --define=scala_deps_used=error
# Java options
build --java_language_version="21"
build --java_runtime_version="remotejdk_21"
build --javacopt="-source 21 -target 21"
build --tool_java_language_version="21"
build --tool_java_runtime_version="remotejdk_21"

build --experimental_strict_action_env
test --experimental_strict_action_env
# Other options
build --experimental_use_hermetic_linux_sandbox
build --experimental_worker_cancellation
build --experimental_worker_multiplex_sandboxing
build --experimental_worker_sandbox_hardening
build --strategy=worker,sandboxed,local
build --verbose_failures
build --worker_max_instances=4
build --worker_sandboxing

build --strategy=ScalaCompile=worker
build --strategy=ScalaCheckDeps=worker
build --strategy=ScalaFmt=worker
test --strategy=ScalaCompile=worker
test --strategy=ScalaCheckDeps=worker
test --strategy=ScalaFmt=worker

build --python_path=/usr/bin/python3
run --python_path=/usr/bin/python3
test --python_path=/usr/bin/python3
common --experimental_output_paths=strip
common --modify_execution_info=CppArchive=+supports-path-mapping
common --modify_execution_info=CppCompile=+supports-path-mapping
common --modify_execution_info=CppModuleMap=+supports-path-mapping

common --announce_rc
common --color=yes
common --disk_cache=.bazel_cache
common --@rules_scala_annex//rules/scala:scala-toolchain=zinc
common:v3.2 --config=noop
common:v3.3 --config=noop

# pick something trivial as a "noop"
common:noop --logging=3
# These are backwards incompatible options; we should check to see if their values have been flipped
# when upgrading to new major Bazel version
common --incompatible_auto_exec_groups
common --incompatible_autoload_externally=sh_binary # sh_binary is used by rules_jvm_external
common --incompatible_config_setting_private_default_visibility
common --incompatible_disable_native_repo_rules
common --incompatible_disable_starlark_host_transitions
common --incompatible_disable_target_provider_fields
common --incompatible_strict_action_env

# Unfortunately, this can't be enabled just yet because with it enabled, we get the following error:
# ERROR: Traceback (most recent call last):
# File "/home/jpeterson/.cache/bazel/*/external/rules_java+/java/common/rules/java_runtime.bzl", line 197, column 48, in <toplevel>
# "hermetic_static_libs": attr.label_list(
# Error in label_list: Illegal argument: element in 'providers' is of unexpected type. Either all elements should be providers, or all elements should be lists of providers, but got an element of type com.google.devtools.build.lib.starlarkbuildapi.core.ContextAndFlagGuardedValue$1.
#
#common --incompatible_stop_exporting_language_modules

# This is disabled because rules_python (and possibly other rulesets we depend on) rely on
# deprecated `Label` APIs:
# https://github.com/bazelbuild/rules_python/blob/main/python/private/pythons_hub.bzl#L82
#common --noincompatible_enable_deprecated_label_apis

test --test_output=all
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.1
lucidsoftware/8.1.999
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.bazel_cache/
/bazel-*
/external-tools/
/temp
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ bazel_dep(name = "rules_scala_annex")

bazel_dep(name = "buildifier_prebuilt", version = "8.0.1", dev_dependency = True)

rules_scala_annex_version = "lucid_2024-12-06"
rules_scala_annex_version = "lucid_2025-02-27"

archive_override(
module_name = "rules_scala_annex",
integrity = "sha256-lSbyWlYtgP0ENngg4gKU1EBJ8d1sgMQKJlmOHwmCw3k=",
integrity = "sha256-V+btm8QF+VLhPzn906SskVY798DdzA9ofJcl2FCimOw=",
strip_prefix = "rules_scala-{}".format(rules_scala_annex_version),
urls = ["https://github.com/lucidsoftware/rules_scala/archive/refs/tags/{}.zip".format(rules_scala_annex_version)],
)
Expand Down
Loading