Skip to content

validate checksums for zenodo downloads#821

Merged
fneum merged 2 commits intomasterfrom
md5-checksums
Jan 2, 2024
Merged

validate checksums for zenodo downloads#821
fneum merged 2 commits intomasterfrom
md5-checksums

Conversation

@fneum
Copy link
Copy Markdown
Member

@fneum fneum commented Dec 29, 2023

The snakemake built-in way to validate checksums (ensure()) currently only works for SHA256 checksums, not the MD5 checksums provided by Zenodo.

snakemake/snakemake#1972

This feature can handle both MD5 and SHA256 and checks if downloads from Zenodo are complete.

The checksums are automatically retrieved through the Zenodo API (no key required).

Previously, unnoticed incomplete downloads could lead to obscure error messages.

The function validate_checksum() also works for manually provided checksums.

Possibly interesting for @koen-vg.

@fneum fneum merged commit fac257c into master Jan 2, 2024
@fneum fneum deleted the md5-checksums branch January 2, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant