Skip to content

Commit eb0587f

Browse files
authored
1 parent 209cea0 commit eb0587f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

infra/base-images/base-builder/bash_parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ def should_discard_command(ast_tree) -> bool:
4747
except: # pylint: disable=bare-except
4848
return False
4949

50+
if ('cmake' in first_word and
51+
any('--build' in part.word for part in ast_tree.parts)):
52+
return False
53+
5054
cmds_to_avoid_replaying = {
5155
'configure', 'autoheader', 'autoconf', 'autoreconf', 'cmake', 'autogen.sh'
5256
}

0 commit comments

Comments
 (0)