We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d4424 commit 9ecefb4Copy full SHA for 9ecefb4
sling/sling/bin.py
@@ -39,7 +39,11 @@ def get_binary_cache_dir(version: str):
39
def download_binary(version: str):
40
"""Download the sling binary for the current platform"""
41
system, arch, archive_name, binary_name = get_platform_info()
42
- version = 'v' + version.replace("v", '') # ensure 'v' is prefix
+
43
+ # Ensure version has 'v' prefix for non-latest versions
44
+ if version != 'latest' and not version.startswith('v'):
45
+ version = 'v' + version
46
47
cache_dir = get_binary_cache_dir(version)
48
binary_path = cache_dir / binary_name
49
0 commit comments