Louis Le Nézet
08/05/2026, 5:04 PM> ERROR conda.core.link:_execute(1014): An error occurred while installing package 'bioconda::spades-3.15.5-h95f258a_1'.
> Rolling back transaction:
> LinkError: post-link script failed for package bioconda::spades-3.15.5-h95f258a_1
> location of failed script: /home/runner/work/modules/modules/.nf-test/tests/769e57f0e7d8bc77bee19f97fef1c9d9/work/conda/env-27f8de4e77d219b103e2d1302f904167/bin/.spades-post-link.sh
> ==> script messages <==
> <None>
> ==> script output <==
> stdout:
> stderr: /home/runner/work/modules/modules/.nf-test/tests/769e57f0e7d8bc77bee19f97fef1c9d9/work/conda/env-27f8de4e77d219b103e2d1302f904167/etc/conda/deactivate.d/deactivate-gxx_linux-64.sh: line 68: CONDA_BACKUP_CXX: unbound variable
I've tried to specify additional libraries to match the singularity container, but I always came back to this error.
Does anybody know how to solve this ?
github.com/nf-core/modules/pull/12577Mahesh Binzer-Panchal
08/06/2026, 7:03 AMdeactivate-gxx_linux-64.sh: line 68: CONDA_BACKUP_CXX: unbound variable
The process.shell directive that we use across nf-core set's -u in addition to the -e and -o pipefail. That -u I think is what's resulting in the error. The normal process is to set +u around the command where it occurs.
github.com/nf-core/modules/blob/…/main.nf#…
It's hard for me to see from your code exactly where this occurring though. It looks like it is not in the script from that error message.Louis Le Nézet
08/06/2026, 8:01 AMLouis Le Nézet
08/06/2026, 8:18 AMMahesh Binzer-Panchal
08/06/2026, 8:41 AMprocess.shell to not use -u would solve it, but that would affect every module, since I think the .command.run where the conda environment is being setup also uses the settings from that directive.Mahesh Binzer-Panchal
08/06/2026, 8:42 AMLouis Le Nézet
08/06/2026, 10:28 AMMahesh Binzer-Panchal
08/06/2026, 10:55 AMMahesh Binzer-Panchal
08/06/2026, 10:55 AM