zeroshade commented on code in PR #2777:
URL: https://github.com/apache/iceberg-go/pull/2777#discussion_r4803395165


##########
dev/check-license:
##########
@@ -27,7 +27,7 @@ acquire_rat_jar () {
     printf "Attempting to fetch rat\n"
     JAR_DL="${JAR}.part"
     if [ $(command -v curl) ]; then
-      curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
+      curl -L --silent --show-error --fail --retry 3 --retry-all-errors 
--retry-max-time 60 -o "$JAR_DL" "${URL}" && mv "$JAR_DL" "$JAR"

Review Comment:
   nit (optional): with `--fail`, a failed download no longer gets `mv`ed into 
place, so the jar never exists and the existing `rm "$JAR"` in the `unzip -tq` 
failure branch now prints `rm: cannot remove ...apache-rat-0.17.jar: No such 
file or directory` right before the real message, and leaves 
`apache-rat-0.17.jar.part` behind. Changing that line to `rm -f "$JAR" 
"$JAR_DL"` fixes both.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to