Is your feature request related to a problem? Please describe.
When a rule uses an auxiliary source file provided with the workflow and references it with workflow.source_path(), the file is not accessible in the apptainer/singularity container
Describe the solution you'd like
The referenced files are cached by snakemake. The paths to the snakemake cache folder (probably defined by $XDG_CACHE_HOME) should be mounted when running the command.
Describe alternatives you've considered
Currently, the user has to bind e.g. /home/$USER/.cache/snakemake/ to the container via the --apptainer-args command line option.