Fix regression bug when using wrapper-prefix #1492
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Since a few months, we sticked to version 6.7 due to a regression bug when using
--wrapper-prefix option. Here is a quick fix that should solve the issue in version 7.2.1+9
With version 7.2.1, this kind of run using snakemake
currently fails. The error is related to the fact that
an is probably related to this PR: #1182
This happen in modules wrapper.py where and sourcecache.py in LocalGitFile
Indeed the function find_extension of wrappers.py return None (hence the error here above) because the LocalGitFile.get_path_or_uri does not return a valid file.
This may be due the fact that git+ is not recognised by smart_open as a valid protocol.
Therefore, I switched from git+ to file://
This fixes the issue and allows us to use --wrapper-prefix again.
I see two issues here:
There are maybe some side effects here and I do not know the snakemake code base enough so please take care if merging the PR but that will be super useful to have this feature back to the next snakemake release !
QC
docs/
) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).