Skip to content

Commit 4149ab6

Browse files
committed
Fix rules_rust_prost repo cache issues
1 parent d020f20 commit 4149ab6

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

rs/experimental/rules_rust.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def _rules_rust_impl(mctx):
3131

3232
http_archive(
3333
name = "rules_rust",
34-
integrity = "sha256-vZfWz/bMaLs3Q/xRtj0qEVqQa47Xwd2iK6GgYJZqgUU=",
35-
strip_prefix = "rules_rust-e1ed0e436cb319700887823c7df421c5684bc6da",
36-
url = "https://github.com/hermeticbuild/rules_rust/archive/e1ed0e436cb319700887823c7df421c5684bc6da.tar.gz",
34+
integrity = "sha256-A3y+v1265snByz0FYfvBcijUfG30TGkuZByXIvZcmHU=",
35+
strip_prefix = "rules_rust-496f7a482ce8be997d7e6ebc79c1b7c30152297a",
36+
url = "https://github.com/hermeticbuild/rules_rust/archive/496f7a482ce8be997d7e6ebc79c1b7c30152297a.tar.gz",
3737
patches = patches,
3838
patch_strip = strip,
3939
)

rs/experimental/rules_rust_prost.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ _rules_rust_prost_repo = repository_rule(
7575
)
7676

7777
def _rules_rust_prost_impl(mctx):
78+
prost_workspace = mctx.path(Label("@rules_rust//:extensions/prost/WORKSPACE.bzlmod"))
79+
mctx.read(prost_workspace)
80+
7881
local_repository(
7982
name = "rules_rust_prost_upstream",
80-
path = str(mctx.path(Label("@rules_rust//:extensions/prost/WORKSPACE.bzlmod")).dirname),
83+
path = str(prost_workspace.dirname),
8184
)
8285

8386
_rules_rust_prost_repo(

test/MODULE.bazel.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)