facebook / facebook/buck2

--show-output (and related options show nothing in column 2) when using DefaultInfo with default_outs

Open
#543 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

I'll caveat this with the comment that I'm very new to playing with buck2, so it's possible I'm doing something wrong or have incorrect expectations.

While building some .bzl files to support a build flow I noticed that if I have rule returning a `DefaultInfo(default_outs=)` the `--show-output` command when doing buck2 build shows nothing in the 2nd column of the output, whereas I think it should show the outputs list? This is true for the other show output commands as well (full, json etc) ie none of these show the output information either.

If i change the return to do `DefaultInfo(default_out=[0])` ie just picking the first element in the list, the `--show-output` command shows the expected info in the 2nd output column.

Is it expected that nothing is shown when `DefaultInfo` uses `default_outs`?

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a .bzl rule returning DefaultInfo(default_outs=) and compare it with default_out=[0]. Start from the --show-output command and its full and JSON variants; done means the relevant output information appears in the second column and corresponding formats for default_outs.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.