You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python, lstrip and rstrip do not trim instances of a string, they strip characters from the provided from input. As an example, https://github.com/stephenjust/unmanic-plugins.git gets trimmed to ephenjust/unmanic-plugins (where the "st" gets chopped off because "https://github.com/" contains "s" and "t".
You probably want "removeprefix" and "removesuffix" as the most concise solution, but that requires upgrading to Python 3.9 for your Action. (This is pretty easy, but I'm not sure if you'd want inconsistency between the unmanic container running py3.8 and this build tooling running py3.9.)
The text was updated successfully, but these errors were encountered:
Removing the s alone had no impact, since there was already an s in the string from https://
In terms of python, it does look like the Ubuntu LTS does have packages for newer versions (python3.9, etc), they're just not included automatically by python3.
unmanic-plugins/scripts/generate_repository.py
Line 190 in 5cf3812
In Python, lstrip and rstrip do not trim instances of a string, they strip characters from the provided from input. As an example, https://github.com/stephenjust/unmanic-plugins.git gets trimmed to ephenjust/unmanic-plugins (where the "st" gets chopped off because "https://github.com/" contains "s" and "t".
You probably want "removeprefix" and "removesuffix" as the most concise solution, but that requires upgrading to Python 3.9 for your Action. (This is pretty easy, but I'm not sure if you'd want inconsistency between the unmanic container running py3.8 and this build tooling running py3.9.)
The text was updated successfully, but these errors were encountered: