From e78a731e2d7a7fcbcadbdf886ecf40b4853bb761 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 6 Apr 2020 11:47:23 +0100 Subject: [PATCH] Fix bug in Docker pin script causing the latest tag to be pinned --- bin/update_dependencies.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/update_dependencies.py b/bin/update_dependencies.py index 50aaf515..ff7d511c 100755 --- a/bin/update_dependencies.py +++ b/bin/update_dependencies.py @@ -84,7 +84,9 @@ for image in images: digest = latest_tag['images'][0]['digest'] pinned_tag = next( - tag for tag in tags if tag['images'][0]['digest'] == digest + tag + for tag in tags + if tag != latest_tag and tag['images'][0]['digest'] == digest ) tag_name = pinned_tag['name']