Skip to content

Be a bit more forgiving with copy_file#5142

Merged
bartoldeman merged 2 commits intoeasybuilders:developfrom
ocaisa:less_strict_copy
Mar 3, 2026
Merged

Be a bit more forgiving with copy_file#5142
bartoldeman merged 2 commits intoeasybuilders:developfrom
ocaisa:less_strict_copy

Conversation

@ocaisa
Copy link
Copy Markdown
Member

@ocaisa ocaisa commented Mar 2, 2026

I noticed that (in EESSI/software-layer#1405), that jupyter-server-2.16.0-GCCcore-14.2.0.eb builds fine with EasyBuild/5.2.0 but errors (in EESSI) due to a copy failure for one of the easyblocks used.

I tracked this down to https://github.com/easybuilders/easybuild-easyblocks/pull/3993/changes#diff-8c64eeef13a658d3b3982cea75b316a70b272ece82de8f5d1a634dd2252071f9 which seems to trigger attempting to copy the cargo easyblock twice to the reprod folder. Since the permissions in EESSI are read-only, the copy fails to overwrite the previously copied file. This change makes things more forgiving (if the contents are already the same, just update the xattrs).

Copy link
Copy Markdown
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bartoldeman bartoldeman merged commit 9d84741 into easybuilders:develop Mar 3, 2026
40 checks passed
@ocaisa ocaisa deleted the less_strict_copy branch March 3, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants