()
| 125 | } |
| 126 | |
| 127 | export async function getAvailablePyPyVersions() { |
| 128 | const url = 'https://downloads.python.org/pypy/versions.json'; |
| 129 | const http: httpm.HttpClient = new httpm.HttpClient('tool-cache'); |
| 130 | |
| 131 | const response = await http.getJson<IPyPyManifestRelease[]>(url); |
| 132 | if (!response.result) { |
| 133 | throw new Error( |
| 134 | `Unable to retrieve the list of available PyPy versions from '${url}'` |
| 135 | ); |
| 136 | } |
| 137 | |
| 138 | return response.result; |
| 139 | } |
| 140 | |
| 141 | async function createPyPySymlink( |
| 142 | pypyBinaryPath: string, |