easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

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

Open boegel opened this issue 1 year ago • 1 comments

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?

boegel avatar Sep 24 '24 13:09 boegel

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

akesandgren avatar Sep 25 '24 15:09 akesandgren