use backticks for hash

This commit is contained in:
Daylin Morgan 2024-10-01 11:05:19 -05:00
parent d3a9286723
commit c01c5309f5
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -186,7 +186,7 @@ proc writeDervationsToStepSummary(drvs: seq[string]) =
let rows = collect( let rows = collect(
for drv in drvs: for drv in drvs:
let (name,hash) = splitDrv(drv) let (name,hash) = splitDrv(drv)
fmt"| {name} | {hash} |" fmt"| {name} | `{hash}` |"
) )
let summaryFilePath = getEnv("GITHUB_STEP_SUMMARY") let summaryFilePath = getEnv("GITHUB_STEP_SUMMARY")
if summaryFilePath == "": fatalQuit "no github step summary found" if summaryFilePath == "": fatalQuit "no github step summary found"
@ -233,10 +233,6 @@ proc nixBuildHostDry*(minimal: bool, rest: seq[string]) =
let output = parseDryRunOutput err let output = parseDryRunOutput err
display output display output
# TODO: Add to bbansi
template `bbfmt`(pattern: static string): untyped =
bb(fmt(pattern))
proc nixBuildWithCache*(minimal: bool, name: string, rest:seq[string]) = proc nixBuildWithCache*(minimal: bool, name: string, rest:seq[string]) =
if findExe("cachix") == "": fatalQuit "is cachix installed?" if findExe("cachix") == "": fatalQuit "is cachix installed?"
info bbfmt"building and pushing to cache: [b]{name}" info bbfmt"building and pushing to cache: [b]{name}"