Skip to content

Commit

Permalink
[antlir2][chef_solo] expose more debug info as subtargets
Browse files Browse the repository at this point in the history
Summary: Make it easier to see this internal details as debug subtargets

Test Plan: testhard

Reviewed By: naveedgol

Differential Revision: D66474531

fbshipit-source-id: c30ab31aca0faa4cc7a6576c0ccec6323107202f
  • Loading branch information
vmagro authored and facebook-github-bot committed Nov 26, 2024
1 parent 5d4781a commit 95dad8a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions antlir/antlir2/bzl/image/layer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,13 @@ def _impl_with_features(features: ProviderCollection, *, ctx: AnalysisContext) -
plans[pi.id] = pi
compile_feature_hidden_deps.append(pi.hidden)
if pi.sub_artifacts:
plan_sub_targets[pi.id] = [DefaultInfo(sub_targets = {
key: [DefaultInfo(artifact)]
for key, artifact in pi.sub_artifacts.items()
})]
plan_sub_targets[pi.id] = [DefaultInfo(
pi.output,
sub_targets = {
key: [DefaultInfo(artifact)]
for key, artifact in pi.sub_artifacts.items()
},
)]
previous_phase_plans = plans

phase_sub_targets["plan"] = [DefaultInfo(sub_targets = plan_sub_targets)]
Expand Down

0 comments on commit 95dad8a

Please sign in to comment.