From 6d8ecba42381d946658b6ea09936345b692d7d0d Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 30 Mar 2017 14:20:27 -0700 Subject: [PATCH] [infra] Break loudly when a build script incorrectly uses /out instead of $OUT --- infra/gcb/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/gcb/build.py b/infra/gcb/build.py index b451aebee..9a1bfbb99 100755 --- a/infra/gcb/build.py +++ b/infra/gcb/build.py @@ -154,7 +154,9 @@ def get_build_steps(project_yaml): 'args': [ 'bash', '-c', - 'cd /src/{1} && mkdir -p {0} && compile'.format(out, name), + # Remove /out to break loudly when a build script incorrectly uses + # /out instead of $OUT. + 'rm -r /out && cd /src/{1} && mkdir -p {0} && compile'.format(out, name), ], }, # zip binaries