From f0974fa8fcd6d4a24052cba0c363faf24913e992 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 17 Nov 2024 13:50:39 +0100 Subject: [PATCH] presubmit.py: More information when check for apt-get install fails Otherwise it is hard to find out which Dockerfile actually failed the checks. --- infra/presubmit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/presubmit.py b/infra/presubmit.py index 86f5cd927fba4..41633fa256a73 100755 --- a/infra/presubmit.py +++ b/infra/presubmit.py @@ -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