Skip to content

Commit 96ac810

Browse files
committed
windows fixes
1 parent 88c3adb commit 96ac810

File tree

23 files changed

+985
-696
lines changed

23 files changed

+985
-696
lines changed

.bazelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ test --test_output=errors
66

77
# TODO(alex): enable
88
common --noenable_bzlmod
9+
common --enable_workspace
10+
11+
# Windows settings
12+
startup --windows_enable_symlinks
13+
14+
# Point tools such as coursier (used in rules_jvm_external) to Bazel's downloaded JDK
15+
# suggested in https://github.com/bazelbuild/rules_jvm_external/issues/445
16+
common --repo_env=JAVA_HOME=../bazel_tools/jdk
17+
common --action_env=JAVA_HOME=../bazel_tools/jdk
918

1019
# Define value used by tests
1120
build --define=SOME_VAR=SOME_VALUE

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
7.0.2
1+
7.6.1
22
# The first line of this file is used by Bazelisk and Bazel to be sure
33
# the right version of Bazel is used to build and test this repo.
44
# This also defines which version is used on CI.

Cargo.Bazel.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "32b494853fa6e3f2c2ea61a76720e873e7384da14889aadcba90bfcd4f1916e3",
2+
"checksum": "aa56303cf8eaea6e963e8ba41da8c3381eff6977a795dadf3fe0b3f846012e31",
33
"crates": {
44
"addr2line 0.21.0": {
55
"name": "addr2line",
@@ -8536,9 +8536,9 @@
85368536
"version": "0.6.0",
85378537
"repository": {
85388538
"Git": {
8539-
"remote": "https://github.com/prefix-dev/rip",
8539+
"remote": "https://github.com/peakschris/rip",
85408540
"commitish": {
8541-
"Rev": "b047c9ec0b42125a67d35346f08b7e7848ac24f4"
8541+
"Rev": "3de9ee95eab577c9e48526464013e217287c6937"
85428542
},
85438543
"strip_prefix": "crates/rattler_installs_packages"
85448544
}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MODULE.bazel

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module(
1010
# When bumping, add a comment explaining what's required from the newer release.
1111
bazel_dep(name = "aspect_bazel_lib", version = "1.40.0")
1212
bazel_dep(name = "bazel_skylib", version = "1.4.2")
13-
bazel_dep(name = "rules_python", version = "0.29.0")
13+
bazel_dep(name = "rules_python", version = "0.40.0")
1414
bazel_dep(name = "platforms", version = "0.0.7")
1515

1616

@@ -21,6 +21,12 @@ python.toolchain(
2121
python_version = "3.8.12",
2222
)
2323

24+
python_stdlib_list = use_extension("@rules_python//python:extensions.bzl", "python_stdlib_list")
25+
use_repo(
26+
python_stdlib_list,
27+
"python_stdlib_list",
28+
)
29+
2430
tools = use_extension("//py:extensions.bzl", "py_tools")
2531
tools.rules_py_tools()
2632
use_repo(tools, "rules_py_tools")
@@ -38,9 +44,10 @@ register_toolchains(
3844
# NOTE: when publishing to BCR, we patch these to be dev_dependency, as we publish pre-built binaries
3945
# along with our releases.
4046

47+
# Versions newer than 0.58 fail with https://github.com/bazelbuild/rules_rust/issues/3441
4148
bazel_dep(
4249
name = "rules_rust",
43-
version = "0.38.0",
50+
version = "0.58.0",
4451
# In released versions: dev_dependency = True
4552
)
4653

e2e/repository-rule-deps/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ common --enable_bzlmod
55

66
# The imports=[".."] only works properly when this matches the python toolchain major version.
77
common --@aspect_rules_py//py:interpreter_version=3.11.6
8+
9+
# Windows settings
10+
startup --windows_enable_symlinks

e2e/smoke/.bazelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
# Under Bazel 7 or later, this flag is ignored as the PyRuntimeInfo gives this information.
22
common --@aspect_rules_py//py:interpreter_version=3.9.18
3+
4+
# Windows settings
5+
startup --windows_enable_symlinks
6+
7+
# Attempt to shorten paths as much as possible to avoid windows limits
8+
common --nolegacy_external_runfiles
9+
common --experimental_sibling_repository_layout
10+
11+
common --override_module=rules_rust=d:/workdir/github/rules_rust2
12+
13+
common --incompatible_use_plus_in_repo_names=false

e2e/smoke/.bazelversion

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
../../.bazelversion
1+
8.2.1
2+
# bazel 7.0.1 and 7.6.1 fails due to path too long during git reset - tracked to bazel_tools git submodule

e2e/smoke/MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ local_path_override(
77
)
88

99
# Because we use a prerelease of rules_py, we must compile the rust tools from source.
10-
bazel_dep(name = "rules_rust", version = "0.40.0")
10+
# Versions newer than 0.58 fail with https://github.com/bazelbuild/rules_rust/issues/3441
11+
bazel_dep(name = "rules_rust", version = "0.58.0")
1112

1213
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
1314
rust.toolchain(

e2e/system-interpreter/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Under Bazel 7 or later, this flag is ignored as the PyRuntimeInfo gives this information.
22
common --@aspect_rules_py//py:interpreter_version=3.9.6
3+
4+
# Windows settings
5+
startup --windows_enable_symlinks

0 commit comments

Comments
 (0)