Skip to content
Snippets Groups Projects
Commit 8cfb971d authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

summarize: Silence superfluous error output

parent 8717428c
No related branches found
No related tags found
No related merge requests found
......@@ -79,10 +79,11 @@ def show_failures(summary, log_excerpt=100):
print('These packages failed to build:')
print()
for pkg in failed:
print('*', pkg['name'])
print(f"* {pkg['name']} ({pkg['drvPath']})")
print()
proc = subprocess.run(['nix', 'log', pkg['drvPath']],
proc = subprocess.run(['nix', 'log', '--quiet', pkg['drvPath']],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
encoding='UTF-8')
if proc.returncode != 0:
print(f' Error: Failed to fetch log')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment