From e06efe3b45dc0d36bea87d16c160b307ca73ac08 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Thu, 2 Jun 2022 09:42:06 -0400 Subject: [PATCH] Retrieve file only from redistribution point This prevents a potential build failure scenario where rdf-toolkit issues a release and suddenly all CI pinned to 1.11.0's SHA-512 fails. References: * https://github.com/ucoProject/UCO/issues/373 Reported-by: Paul Brandt Signed-off-by: Alex Nelson (cherry picked from commit b6f1ce0deec5bb36ea3bd124d9fcdefa5a3132bc) --- lib/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index ed8b7ca8..d42bde08 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -32,13 +32,10 @@ all: \ # content will be written there." rdf-toolkit.jar: test -r rdf-toolkit.jar.sha512 - # Try retrieval from Github, then from files.caseontology.org. + # Try retrieval from files.caseontology.org. wget \ --output-document $@_ \ - https://jenkins.edmcouncil.org/view/rdf-toolkit/job/rdf-toolkit-build/lastSuccessfulBuild/artifact/target/rdf-toolkit.jar \ - || wget \ - --output-document $@_ \ - https://files.caseontology.org/rdf-toolkit-1.11.0.jar + https://files.caseontology.org/rdf-toolkit-1.11.0.jar test \ "x$$(openssl dgst -sha512 $@_ | awk '{print($$NF)}')" \ == \