@@ -249,7 +249,11 @@ async fn async_main(
249
249
. eval_bxl ( BxlKey :: new ( bxl_label. clone ( ) , bxl_args) )
250
250
. await ?;
251
251
252
- let build_result = ensure_artifacts ( & dice, result) . await ;
252
+ let materialization_ctx = MaterializationContext :: Materialize {
253
+ map : Arc :: new ( Default :: default ( ) ) ,
254
+ force : false ,
255
+ } ;
256
+ let build_result = ensure_artifacts ( & dice, & materialization_ctx, result) . await ;
253
257
254
258
match build_result {
255
259
None => { }
@@ -333,13 +337,9 @@ async fn async_main(
333
337
334
338
async fn ensure_artifacts (
335
339
ctx : & DiceComputations ,
340
+ materialization_ctx : & MaterializationContext ,
336
341
bxl_result : Arc < BxlResult > ,
337
342
) -> Option < Vec < BuildTargetResult > > {
338
- let materialization_ctx = MaterializationContext :: Materialize {
339
- map : Arc :: new ( Default :: default ( ) ) ,
340
- force : false ,
341
- } ;
342
-
343
343
match & * bxl_result {
344
344
BxlResult :: None { .. } => None ,
345
345
BxlResult :: BuildsArtifacts {
@@ -366,7 +366,7 @@ async fn ensure_artifacts(
366
366
values : materialize_artifact_group (
367
367
ctx,
368
368
& ArtifactGroup :: Artifact ( artifact. dupe ( ) ) ,
369
- & materialization_ctx,
369
+ materialization_ctx,
370
370
)
371
371
. await ?,
372
372
provider_type : BuildProviderType :: DefaultOther ,
@@ -407,7 +407,7 @@ async fn ensure_artifacts(
407
407
values : materialize_artifact_group (
408
408
ctx,
409
409
& ArtifactGroup :: Artifact ( a. dupe ( ) ) ,
410
- & materialization_ctx,
410
+ materialization_ctx,
411
411
)
412
412
. await ?,
413
413
provider_type : BuildProviderType :: DefaultOther ,
0 commit comments