Skip to content

Commit 53bb964

Browse files
committed
windows fixes
1 parent 88c3adb commit 53bb964

File tree

20 files changed

+125
-25
lines changed

20 files changed

+125
-25
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ 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
913

1014
# Define value used by tests
1115
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": "afff514f45f1d900b8218ad4704b83734c506a79afa620ac511678d84f8978af",
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": "412805fabaf3e7811ff6ac68d65d3c9f84c9d1a0"
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ register_toolchains(
3838
# NOTE: when publishing to BCR, we patch these to be dev_dependency, as we publish pre-built binaries
3939
# along with our releases.
4040

41+
# Versions newer than 0.58 fail with https://github.com/bazelbuild/rules_rust/issues/3441
4142
bazel_dep(
4243
name = "rules_rust",
43-
version = "0.38.0",
44+
version = "0.58.0",
4445
# In released versions: dev_dependency = True
4546
)
4647

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)