From 6023324479ccf6662a616ff5584a89e3c6e845ec Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Thu, 9 Jan 2025 09:00:31 +0900 Subject: [PATCH] Update Cygwin mirror uri Signed-off-by: Sora Morimoto --- dist/index.js | 4 ++-- dist/post/index.js | 4 ++-- packages/setup-ocaml/src/cache.ts | 2 +- packages/setup-ocaml/src/constants.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 974b36b9..ad95dbf6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -149779,7 +149779,7 @@ const PLATFORM = (() => { } } })(); -const CYGWIN_MIRROR = "https://cygwin.mirror.constant.com/"; +const CYGWIN_MIRROR = "https://mirrors.kernel.org/sourceware/cygwin/"; const GITHUB_WORKSPACE = external_node_process_.env.GITHUB_WORKSPACE ?? external_node_process_.cwd(); const CYGWIN_MIRROR_ENCODED_URI = encodeURIComponent(CYGWIN_MIRROR).toLowerCase(); // [HACK] https://github.com/ocaml/setup-ocaml/pull/55 @@ -168645,7 +168645,7 @@ async function setupCygwin() { async function composeCygwinCacheKeys() { const cygwinVersion = await retrieveCygwinVersion(); - const key = `${CACHE_PREFIX}-setup-ocaml-cygwin-${cygwinVersion}`; + const key = `${CACHE_PREFIX}-setup-ocaml-cygwin-${CYGWIN_MIRROR_ENCODED_URI}-${cygwinVersion}`; const restoreKeys = [key]; return { key, restoreKeys }; } diff --git a/dist/post/index.js b/dist/post/index.js index 5d3c1d91..5dd92322 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -114762,7 +114762,7 @@ const constants_PLATFORM = (() => { } } })(); -const CYGWIN_MIRROR = "https://cygwin.mirror.constant.com/"; +const CYGWIN_MIRROR = "https://mirrors.kernel.org/sourceware/cygwin/"; const constants_GITHUB_WORKSPACE = external_node_process_.env.GITHUB_WORKSPACE ?? external_node_process_.cwd(); const constants_CYGWIN_MIRROR_ENCODED_URI = encodeURIComponent(CYGWIN_MIRROR).toLowerCase(); // [HACK] https://github.com/ocaml/setup-ocaml/pull/55 @@ -114845,7 +114845,7 @@ const constants_RESOLVED_COMPILER = (async () => { async function composeCygwinCacheKeys() { const cygwinVersion = await retrieveCygwinVersion(); - const key = `${CACHE_PREFIX}-setup-ocaml-cygwin-${cygwinVersion}`; + const key = `${CACHE_PREFIX}-setup-ocaml-cygwin-${CYGWIN_MIRROR_ENCODED_URI}-${cygwinVersion}`; const restoreKeys = [key]; return { key, restoreKeys }; } diff --git a/packages/setup-ocaml/src/cache.ts b/packages/setup-ocaml/src/cache.ts index 13313250..116eca68 100644 --- a/packages/setup-ocaml/src/cache.ts +++ b/packages/setup-ocaml/src/cache.ts @@ -24,7 +24,7 @@ import { retrieveCygwinVersion } from "./windows.js"; async function composeCygwinCacheKeys() { const cygwinVersion = await retrieveCygwinVersion(); - const key = `${CACHE_PREFIX}-setup-ocaml-cygwin-${cygwinVersion}`; + const key = `${CACHE_PREFIX}-setup-ocaml-cygwin-${CYGWIN_MIRROR_ENCODED_URI}-${cygwinVersion}`; const restoreKeys = [key]; return { key, restoreKeys }; } diff --git a/packages/setup-ocaml/src/constants.ts b/packages/setup-ocaml/src/constants.ts index ee67d6b4..ee72faa3 100644 --- a/packages/setup-ocaml/src/constants.ts +++ b/packages/setup-ocaml/src/constants.ts @@ -52,7 +52,7 @@ export const PLATFORM = (() => { } })(); -export const CYGWIN_MIRROR = "https://cygwin.mirror.constant.com/"; +export const CYGWIN_MIRROR = "https://mirrors.kernel.org/sourceware/cygwin/"; export const GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE ?? process.cwd();