Closed aniongithub closed 3 years ago
Thanks for reporting.
Caching an invalid image file is definitely a bug where we should look into. Thanks.
However, the filename looks suspicious. Could you please provide your Pifile in its original encoding? The \r
might be due to some OS-specific newline representation. Please keep in mind that a Pifile is nothing else than a Bash script.
Not sure how to use this with any official pi image without downloading it first...
It's also possible to provide an image located on your local storage. FROM
works with both local and remote files, documentation.
I would like to use a downloaded image to enable certain workflows, using a locally downloaded file is not the best option for me. I could implement a workaround by wget
-ing the file by myself, before invoking it with a local image reference, but since this exists I wanted to leverage it for a fully online workflow.
As for the pifile, posted it in issue 30
This issue, however is still valid. When a download fails, pimod.sh
still tries to use the partially downloaded image and errors out.
Thanks again for reporting this issue.
I added a check to the download which cleans up after a failed wget
. However, this only solves future issues. To cleanup invalid entries within your cache, please purge it.
First run for an unsuccessful download, see issue 30
second try uses cache even though the first download did not succeed?
I'm also seeing that the cache has an entry for
Not sure how to use this with any official pi image without downloading it first...