Fix broken pipe error building version file

(11:34:09) ERROR: /tmpfs/src/github/repo/runsc/BUILD:82:1: Couldn't build file runsc/version.txt: Executing genrule //runsc:deb-version failed (Broken pipe): bash failed: error executing command

PiperOrigin-RevId: 252691902
This commit is contained in:
Fabricio Voznika
2019-06-11 13:56:32 -07:00
committed by Shentubot
parent 307a9854ed
commit a775ae82fe
+1 -1
View File
@@ -82,7 +82,7 @@ pkg_tar(
genrule(
name = "deb-version",
outs = ["version.txt"],
cmd = "$(location :runsc) -version | head -n 1 | sed 's/^[^0-9]*//' > $@",
cmd = "$(location :runsc) -version | grep 'runsc version' | sed 's/^[^0-9]*//' > $@",
stamp = 1,
tools = [":runsc"],
)