Skip to content

Remove existing installation directories when doing rebuilds - #339

Open
bedroge wants to merge 4 commits into
EESSI:mainfrom
bedroge:perl_remove_install_dir
Open

bedroge wants to merge 4 commits into
EESSI:mainfrom
bedroge:perl_remove_install_dir

Conversation

@bedroge

@bedroge bedroge commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Builds in EESSI/software-layer#1862 are failing, because tests are apparently picking up binaries from the original installation, which is not wiped yet. Let's see if this will solve it.

Note: if it does, this needs some additional checks, and it should only be done in certain cases. Just kept it simple for now to be able to test it.

The hook always runs, but I've added some safeguards: it only removes the existing dir if --rebuild used, the dir already exists and is non-empty, and it requires you to set $EESSI_FORCE_EARLY_REMOVAL_OF_INSTALL_DIR=1. I've done the latter in EESSI-install-software.sh, but only for rebuilds, and only if the installpath starts with /cvmfs (to make sure that e.g. site builds on top of CVMFS also use this).

@bedroge bedroge changed the title TEST: remove existing Perl installation dir Remove existing installation directories when doing rebuilds Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant