Skip to content

Commit 1e9384a

Browse files
authored
Merge pull request #34 from dtolnay/project
Fix more associated artifacts for projections
2 parents b4c81ed + d9d8fdf commit 1e9384a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stage0/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _stage0_executable_impl(ctx: AnalysisContext) -> list[Provider]:
175175
],
176176
category = "overlay",
177177
)
178-
command = overlay.project("bin").project(ctx.label.name)
178+
command = overlay.project("bin").project(ctx.label.name).with_associated_artifacts([overlay])
179179
else:
180180
command = cmd_args(
181181
ctx.attrs._wrapper[RunInfo],

stage1/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _rust_tool_impl(ctx: AnalysisContext) -> list[Provider]:
3232
},
3333
)
3434

35-
tool = dist.project(bin_path)
35+
tool = dist.project(bin_path).with_associated_artifacts([dist])
3636

3737
return [
3838
DefaultInfo(

0 commit comments

Comments
 (0)