Skip to content

verify checksum in doDownload #1182

@hohwille

Description

@hohwille

In ide-urls we have now SHA256 checksums of all our downloads. For #941 we also need to implement a verification of the checksum.
Simply call sha256sum on the downloaded file and get the raw checksum (without the filename) from that. Then compare the with *.sha256 file from ide-urls.

NOTE: doDownload is a generic function and can also be called with a direct download (e.g. for a custom tool not available in ide-urls). In that case we cannot verify the checksum and should skip the check. We should print a message that we could not verify the checksum then.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions