TarballDirectoryLoader: Adapt tarball ingestions
This roughly matches how the tarball loaders do ingest the tarball. They ingest the top-level directory [1]. As nixpkgs computes their hashes from the first directory though, we also provide that directory so they can match their extid accordingly. In terms of data, this will change the visit snapshot and the extid mappings. As a result, the core loaders (NodeLoader, ...) have now an extid_version bumped to 1 (it was 0 by default). [1] https://gitlab.softwareheritage.org/swh/devel/swh-loader-core/-/blob/master/swh/loader/package/loader.py?ref_type=heads#L829-837 Refs. swh/infra/sysadm-environment#5222
Showing
- swh/loader/core/loader.py 12 additions, 7 deletionsswh/loader/core/loader.py
- swh/loader/core/tests/conftest.py 9 additions, 8 deletionsswh/loader/core/tests/conftest.py
- swh/loader/core/tests/test_loader.py 19 additions, 3 deletionsswh/loader/core/tests/test_loader.py
- swh/loader/core/tests/test_nar.py 4 additions, 7 deletionsswh/loader/core/tests/test_nar.py
- swh/loader/core/utils.py 1 addition, 1 deletionswh/loader/core/utils.py
- swh/loader/tests/__init__.py 4 additions, 2 deletionsswh/loader/tests/__init__.py
Loading
Please register or sign in to comment