Description
Software Heritage fallbacks added in #4859 adds the ability for opam to fetch archives from Software Heritage.
Currently such archives are (for reasons that escape me [1]) not backups of the original archives but backups of the untarred archives that are re-tarred again later when requested. This way of doing makes it so that archives loose their original checksums and retrieving it in a deterministic manner is close to impossible due to file ordering and metadata having changed.
There is currently a long standing upstream issue that hopes to fix this issue in the medium to long term: https://gitlab.softwareheritage.org/swh/devel/swh-model/-/issues/2430
I personally think we should:
- make sure users understand that the checksum is not checked and that the content might not be the same, when prompting to use the fallback
- make the fallback require
--confirm-level=unsafe-yes
as currently only--yes
is required:opam/src/repository/opamDownload.ml
Line 315 in c4961ba
- Wait for the proper fix upstream and use it whenever possible
[1]: I’m guessing it’s for space efficiencies, but still...