easybuilders / easybuild-framework

EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way.
https://easybuild.io
GNU General Public License v2.0
152 stars 204 forks source link

Allow only checksum verification #2380

Open vanzod opened 6 years ago

vanzod commented 6 years ago

A better way to check checksums provided in easyconfig files should be implemented.

Currently when checking easyconfig PRs that only update checksums, a full module rebuild is required. Using --stop source does not provide a viable solution since the corresponding installed module is deleted before the source fetching step, which breaks Lmod module dependencies.

Additionally, it would be great if EB could check the checksum of a easyconfig file even if its dependencies cannot be satisfied.

boegel commented 6 years ago

There's actually a way around this... You can avoid that the existing modules get removed by specifying a custom separate installation prefix; EasyBuild will only touch module files in the installation prefix it is configured with, not outside of that.

So, you could do something like:

eb --from-pr 1234 --force --robot --stop source --installpath /tmp/$USER/pr1234-${RANDOM}

That doesn't mean we shouldn't provide an easier way though :)