Skip to content

Commit

Permalink
Retrieve file only from redistribution point
Browse files Browse the repository at this point in the history
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:
* #373

Reported-by: Paul Brandt <paul@brandt.name>
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
(cherry picked from commit b6f1ce0)
  • Loading branch information
ajnelson-nist committed Jun 2, 2022
1 parent f19694c commit e06efe3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)}')" \
== \
Expand Down

0 comments on commit e06efe3

Please sign in to comment.