arduino / library-registry

Arduino Library Manager list
https://www.arduino.cc/
Creative Commons Zero v1.0 Universal
259 stars 1.65k forks source link

Library release removal request #1913

Closed per1234 closed 2 years ago

per1234 commented 2 years ago

Library name

AsyncWebServer_RP2040W

Version to remove

1.1.0

per1234 commented 2 years ago

The checksum of the archive file for this release does not match with its checksum in the library index (https://github.com/arduino/libraries-repository-engine/issues/146). We were not able to determine the cause of the mismatch and are hoping that the problem will not recur when the release archive and index entry are regenerated on the next run of the engine following the release removal.

umbynos commented 2 years ago

Done:

2022/09/27 12:57:12 Loaded 5177 libraries from DB
Removing AsyncWebServer_RP2040W@1.1.0
Success!
per1234 commented 2 years ago

Thanks @umbynos! The re-indexing of the release worked correctly:

$ export ARDUINO_DIRECTORIES_DOWNLOADS="/tmp/arduino-cli-directories/downloads"

$ export ARDUINO_DIRECTORIES_DATA="/tmp/arduino-cli-directories/data"

$ arduino-cli lib update-index

[...]

$ arduino-cli lib install AsyncWebServer_RP2040W@1.1.0

[...]

Downloading AsyncWebServer_RP2040W@1.1.0...
AsyncWebServer_RP2040W@1.1.0 downloaded
Installing AsyncWebServer_RP2040W@1.1.0...
Installed AsyncWebServer_RP2040W@1.1.0

$ jq '.libraries[] | select(.name == "AsyncWebServer_RP2040W" and .version == "1.1.0").checksum' "${ARDUINO_DIRECTORIES_DATA}/library_index.json"
"SHA-256:0fed2967e2ab50d967d2ca449d5e009e262f3f1c0ab13828d1bc9f59d1e80e6e"

$ shasum --algorithm 256 "${ARDUINO_DIRECTORIES_DOWNLOADS}/libraries/AsyncWebServer_RP2040W-1.1.0.zip"
0fed2967e2ab50d967d2ca449d5e009e262f3f1c0ab13828d1bc9f59d1e80e6e */tmp/arduino-cli-directories/downloads/libraries/AsyncWebServer_RP2040W-1.1.0.zip

$ jq '.libraries[] | select(.name == "AsyncWebServer_RP2040W" and .version == "1.1.0").size' "${ARDUINO_DIRECTORIES_DATA}/library_index.json"
537171

$ stat --printf="%s" "${ARDUINO_DIRECTORIES_DOWNLOADS}/libraries/AsyncWebServer_RP2040W-1.1.0.zip"
537171