scripts: 'west blobs fetch' does not verify digests after downloading #76185
Labels
area: West
West utility
bug
The issue is a bug, or the PR is fixing a bug
priority: high
High impact/importance bug
Binary blobs and their companion
west blobs
command are really handy.But running
west blobs fetch
will not verify the digests of downloaded files, which does not match the documented [1] behavior:Problem description
The current behavior is:
BLOB_PRESENT
), do nothingBLOB_OUTDATED
), assume versions differ and download the up to date fileBLOB_NOT_PRESENT
), download itNone of the 2) and 3) code paths will verify that the checksum of the file just downloaded actually matches the digest in the blob's metadata.
Consequences:
How to reproduce
lib/esp32c3/libbtdm_app.a
inmodules/hal/espressif/zephyr/module.yml
west blobs fetch hal_espressif
: this will download the file, without warning the user that its checksum does not match that in the blob metadataExpected behavior
Something like:
Thanks.
[1] Fetching blobs: https://docs.zephyrproject.org/3.6.0/contribute/bin_blobs.html#fetching-blobs
The text was updated successfully, but these errors were encountered: