Skip to content

fix use of --module-only on existing installations without write permissions#3659

Merged
smoors merged 8 commits intoeasybuilders:developfrom
ocaisa:module_only_rebuild_no_write_perms
Apr 28, 2021
Merged

fix use of --module-only on existing installations without write permissions#3659
smoors merged 8 commits intoeasybuilders:developfrom
ocaisa:module_only_rebuild_no_write_perms

Conversation

@ocaisa
Copy link
Copy Markdown
Member

@ocaisa ocaisa commented Apr 26, 2021

While attempting to rebuild a module tree from EESSI, I realised there are a couple of barriers in the code right now that don't permit this. As things currently stand --module-only requires write permissions on the existing installation (for log files and other goodies), this PR fixes this.

@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Apr 26, 2021

The PR keeps previous behaviour but makes it so that not having the permissions is no longer fatal

@smoors
Copy link
Copy Markdown
Contributor

smoors commented Apr 28, 2021

@ocaisa do you think it's doable/useful to make a test for this?

@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Apr 28, 2021

@smoors I was afraid someone was going to ask that, I'll see if I can figure it out

@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Apr 28, 2021

@smoors The test I added fails on current develop. Not sure about using subprocess but the os option is a lot of extra lines of code

@boegel boegel added this to the next release (4.3.5?) milestone Apr 28, 2021
Copy link
Copy Markdown
Contributor

@smoors smoors left a comment

Choose a reason for hiding this comment

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

lgtm

@smoors
Copy link
Copy Markdown
Contributor

smoors commented Apr 28, 2021

Going in, thanks @ocaisa!

@smoors smoors merged commit c7b00c0 into easybuilders:develop Apr 28, 2021
@ocaisa ocaisa deleted the module_only_rebuild_no_write_perms branch April 28, 2021 20:24
@boegel boegel changed the title Allow module-only on existing installations (without write permissions) fix use of --module-only on existing installations without write permissions Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix EESSI Related to EESSI project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants