From 7dfdfcd9315be35e7ab6c5534c95160a50cc6776 Mon Sep 17 00:00:00 2001 From: m-jahn Date: Fri, 12 Dec 2025 16:15:07 +0100 Subject: [PATCH 1/2] fix: make curl requests failsafe against redirects, return error on fail --- spython/main/parse/parsers/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spython/main/parse/parsers/docker.py b/spython/main/parse/parsers/docker.py index ef8d356..7153d6f 100644 --- a/spython/main/parse/parsers/docker.py +++ b/spython/main/parse/parsers/docker.py @@ -332,7 +332,8 @@ def _parse_http(self, url, dest): """ file_name = os.path.basename(url) download_path = "%s/%s" % (dest, file_name) - command = "curl %s -o %s" % (url, download_path) + curl_flags = "-L --retry 1 --fail --show-error" + command = "curl %s %s -o %s" % (curl_flags, url, download_path) self.recipe[self.active_layer].install.append(command) def _parse_archive(self, targz, dest): From 0ec622001825edc67642053d6771caf87cb57680 Mon Sep 17 00:00:00 2001 From: m-jahn Date: Sat, 13 Dec 2025 21:38:00 +0100 Subject: [PATCH 2/2] fix: changelog and version --- CHANGELOG.md | 1 + spython/version.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1d5fcf..0566d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to singularity on pypi), and the versions here will coincide with these releases. ## [master](https://github.com/singularityhub/singularity-cli/tree/master) + - make curl requests failsafe against redirects, improved error on fail (0.3.15) - add stream_type to 'run' command like in 'exec' (0.3.14) - do not modify user provided instance name when generating new instance (0.3.13) - bug with instance.run_command (0.3.12) diff --git a/spython/version.py b/spython/version.py index d8199b3..fef4c9f 100644 --- a/spython/version.py +++ b/spython/version.py @@ -5,7 +5,7 @@ # with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -__version__ = "0.3.14" +__version__ = "0.3.15" AUTHOR = "Vanessa Sochat" AUTHOR_EMAIL = "vsoch@users.noreply.github.com" NAME = "spython"