take into list of crates for easyconfigs using Cargo-based easyblock when determining checksums for patches#21416
Conversation
…when determining checksums for patches
34b800c to
4a7fb82
Compare
| # if easyblock derives from Cargo easyblock we need to take into account list of crates, | ||
| # which get added to list of sources, to correctly determine number of checksums for sources (incl. crates) | ||
| if isinstance(app, Cargo): | ||
| src_cnt += len(ec.get('crates', [])) |
There was a problem hiding this comment.
Can't we use the actual list of sources as will be done by the checksums step?
I.e. app.cfg['sources'] as discussed in the other PR/issue
There was a problem hiding this comment.
Not since the change in easybuilders/easybuild-easyblocks#3448, because ec['sources'] no longer contains also the crates since that change, that's exactly why this fix is required
There was a problem hiding this comment.
Since that change app.cfg['sources'] should be populated with the crates while ec['sources'] should not. Or did I miss anything? See the comment
x = app_class(EasyConfig(file_content))
x.cfg <-- always do this
There was a problem hiding this comment.
I created an alternative PR: #21419
Taking the sources, patches and checksums from app.cfg there and in a single place.
Just for clarification: Actual issue is not the change of of |
for for failing CI:
This problem arose due to the change in easybuilders/easybuild-easyblocks#3448, where
self.cfg = self.cfg.copy()was added to theCargoconstructor beforeself.cfg['sources']is being changed...The checksum for
DeltaLake-0.15.1_remove-obsolete-pyarrow-hotfix.patchis already there inDeltaLake-0.15.1-gfbf-2023a.eb