easybuilders / easybuild-easyblocks

Collection of easyblocks that implement support for building and installing software with EasyBuild.
https://easybuild.io
GNU General Public License v2.0
106 stars 285 forks source link

Cargo easyblock produces confusing error message when same crate is listed twice #3461

Open boegel opened 1 month ago

boegel commented 1 month ago

When humantime 2.1.0 is listed twice in crates, then the Cargo easyblock produces a very confusing error:

ERROR ... Unpacking sources of 'humantime-2.1.0.tar.gz' failed

It's actually failing to detect which subdirectories get created by unpacking humantime-2.1.0.tar.gz the second time.

So, Cargo should check whether a particular crate is listed twice, print a warning, and ignore it after unpacking it for the first time?

akesandgren commented 1 month ago

We should also make the easyblock verify the type of the crates variable. If it's not a list one will get weird errors.