diff --git a/src/datalad_cds/download_cds.py b/src/datalad_cds/download_cds.py index 9335b0f..93d1587 100644 --- a/src/datalad_cds/download_cds.py +++ b/src/datalad_cds/download_cds.py @@ -89,6 +89,7 @@ def __call__( options = [] if lazy: options.append("--fast") + options.append("--verifiable") ds.repo.add_url_to_file(pathobj, url, options=options) if save: msg = ( diff --git a/tests/test_download_cds.py b/tests/test_download_cds.py index 035d20b..1910554 100644 --- a/tests/test_download_cds.py +++ b/tests/test_download_cds.py @@ -48,5 +48,5 @@ def test_download_cds_lazy( ) assert ( os.readlink(dataset.pathobj / "download.grib") - == ".git/annex/objects/5J/pV/URL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972/URL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972" + == ".git/annex/objects/69/qm/VURL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972/VURL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972" )