cookiecutter / cookiecutter/whichcraft
This part fails on empty string
Open
- Dominant language
- Python
- Stars
- 72
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/cookiecutter/whichcraft/blob/6120d85fa8f90d6c805fbac6d1dda10538f8f26a/whichcraft.py#L58
split on string that usually ends with ";" will generate empty string as last item.
As every string can end with empty string, this will always return plain version, not suffixed one
Contributor guide
Research direction
Read whichcraft.py at line 58 and inspect how splitting a string ending with ";" produces a trailing empty item. Verify that the lookup handles suffixed paths instead of always returning the plain version, and add or run a focused check for empty-string handling if the repository provides one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100