mirror of https://github.com/sbt/sbt.git
[2.x] fix: Add --fail to curl in launcher to prevent corrupt jars
When the download URL returns an HTTP error (e.g. 404), curl without --fail exits 0 and saves the error page HTML as the jar file. This leaves a corrupt jar that causes confusing errors on subsequent runs. With --fail, curl returns a non-zero exit code on HTTP errors and does not write the response body to the output file. Fixes #6654 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7218b2a1ac
commit
66d2b960ba
Loading…
Reference in New Issue