This command takes some time and then fails with the exception:
[warning] a uenv with the same sha c76fad212c777cc7ba90ce8d1efade79b76bd7afaf1696aaf4e560c0750b2ec7 is already in the repo
terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
what(): filesystem error: cannot get file time: No such file or directory [.uenv-images-ci-eiger-tds/images/c76fad212c777cc7ba90ce8d1efade79b76bd7afaf1696aaf4e560c0750b2ec7/store.squashfs]
Aborted
each uenv is stored in a path named after its hash
we remove this path before adding so that partial updates from previous aborted or erroneous updates are removed
in this case we remove the image that we are supposed to be adding
The fix is to check whether an image with the same sha256 exists, and make the "delete-then-copy" a noop if it does, while still updating the label in the database if needed.
I tried the following:
This command takes some time and then fails with the exception: