Return the download URL for a given version and archive.
(version: str, archive_name: str)
| 80 | |
| 81 | |
| 82 | def get_download_url(version: str, archive_name: str) -> str: |
| 83 | """Return the download URL for a given version and archive.""" |
| 84 | import os |
| 85 | |
| 86 | base = os.environ.get("COPILOT_CLI_DOWNLOAD_BASE_URL", _DOWNLOAD_BASE_URL) |
| 87 | return f"{base}/v{version}/{archive_name}" |
| 88 | |
| 89 | |
| 90 | def get_checksums_url(version: str) -> str: |
no test coverage detected
searching dependent graphs…