Skip to content

Commit c175251

Browse files
authored
[FAST_BUILD] Run mamba info without --quiet and put conda info in build manifest files (#2191)
1 parent 209a746 commit c175251

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tagging/manifests.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111

1212
def quoted_output(container: Container, cmd: str) -> str:
1313
cmd_output = DockerRunner.run_simple_command(container, cmd, print_result=False)
14-
# For example, `mamba info --quiet` adds redundant empty lines
14+
# For example, `mamba info` adds redundant empty lines
1515
cmd_output = cmd_output.strip("\n")
1616
# For example, R packages list contains trailing backspaces
1717
cmd_output = "\n".join(line.rstrip() for line in cmd_output.split("\n"))
18+
19+
assert cmd_output, f"Command `{cmd}` returned empty output"
20+
1821
return f"""\
1922
`{cmd}`:
2023
@@ -76,7 +79,9 @@ def markdown_piece(container: Container) -> str:
7679
7780
{DockerRunner.run_simple_command(container, "python --version")}
7881
79-
{quoted_output(container, "mamba info --quiet")}
82+
{quoted_output(container, "conda info")}
83+
84+
{quoted_output(container, "mamba info")}
8085
8186
{quoted_output(container, "mamba list")}"""
8287

0 commit comments

Comments
 (0)