Skip to content

Commit

Permalink
presubmit.py: More information when check for apt-get install fails
Browse files Browse the repository at this point in the history
Otherwise it is hard to find out which Dockerfile actually failed
the checks.
  • Loading branch information
centic9 committed Dec 1, 2024
1 parent a0ef00a commit f0974fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _check_one_apt_update(path):
if 'RUN apt install' in dockerfile or 'RUN apt-get install' in dockerfile:
print('Please add an "apt-get update" before "apt-get install". '
'Otherwise, a cached and outdated RUN layer may lead to install '
'failures.')
'failures in file %s.' % str(path))
return False

return True
Expand Down

0 comments on commit f0974fa

Please sign in to comment.