From cda5f65d410b6aba3b14b3a198d6d260b3c74b85 Mon Sep 17 00:00:00 2001 From: christian <153755613+skateball@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:33:25 +0200 Subject: [PATCH 1/4] Update SapMachine URLs --- src/distributions/sapmachine/installer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distributions/sapmachine/installer.ts b/src/distributions/sapmachine/installer.ts index dfe32e161..f55fe413e 100644 --- a/src/distributions/sapmachine/installer.ts +++ b/src/distributions/sapmachine/installer.ts @@ -64,12 +64,12 @@ export class SapMachineDistribution extends JavaBase { const arch = this.distributionArchitecture(); let fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json' + 'https://sapmachine.io/assets/data/sapmachine-releases-all.json' ); if (!fetchedReleasesJson) { fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://api.github.com/repos/SAP/SapMachine/contents/assets/data/sapmachine-releases-all.json?ref=gh-pages', + 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', getGitHubHttpHeaders() ); } From 65d2f80cdfee7a8315ab86366b29d1bfbf0ff7d7 Mon Sep 17 00:00:00 2001 From: skateball Date: Mon, 20 Oct 2025 17:48:54 +0200 Subject: [PATCH 2/4] Update SapMachine release URLs to use the new domain --- dist/setup/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index c4e8ec9ef..e8297c2f0 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -131520,9 +131520,9 @@ class SapMachineDistribution extends base_installer_1.JavaBase { return __awaiter(this, void 0, void 0, function* () { const platform = this.getPlatformOption(); const arch = this.distributionArchitecture(); - let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'); + let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json'); if (!fetchedReleasesJson) { - fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://api.github.com/repos/SAP/SapMachine/contents/assets/data/sapmachine-releases-all.json?ref=gh-pages', (0, util_1.getGitHubHttpHeaders)()); + fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (0, util_1.getGitHubHttpHeaders)()); } if (!fetchedReleasesJson) { throw new Error(`Couldn't fetch SapMachine versions information from both primary and backup urls`); From fcb4621416d76f98905ed3e21f9479197ec45795 Mon Sep 17 00:00:00 2001 From: skateball Date: Fri, 24 Oct 2025 14:43:38 +0200 Subject: [PATCH 3/4] Fix fetchReleasesFromUrl to remove unnecessary headers for backup URL --- dist/setup/index.js | 2 +- src/distributions/sapmachine/installer.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index e8297c2f0..3b8701346 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -131522,7 +131522,7 @@ class SapMachineDistribution extends base_installer_1.JavaBase { const arch = this.distributionArchitecture(); let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json'); if (!fetchedReleasesJson) { - fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (0, util_1.getGitHubHttpHeaders)()); + fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'); } if (!fetchedReleasesJson) { throw new Error(`Couldn't fetch SapMachine versions information from both primary and backup urls`); diff --git a/src/distributions/sapmachine/installer.ts b/src/distributions/sapmachine/installer.ts index f55fe413e..6f42c5eee 100644 --- a/src/distributions/sapmachine/installer.ts +++ b/src/distributions/sapmachine/installer.ts @@ -69,8 +69,7 @@ export class SapMachineDistribution extends JavaBase { if (!fetchedReleasesJson) { fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', - getGitHubHttpHeaders() + 'https://backup.sapmachine.io/assets/data/sapmachine-releases-all.json' ); } From 85ef1bce974893891b3c154c222a5898d06eda34 Mon Sep 17 00:00:00 2001 From: skateball Date: Fri, 24 Oct 2025 14:45:54 +0200 Subject: [PATCH 4/4] Update backup URL for fetching SapMachine releases to the new GitHub location --- src/distributions/sapmachine/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/distributions/sapmachine/installer.ts b/src/distributions/sapmachine/installer.ts index 6f42c5eee..39014b6f8 100644 --- a/src/distributions/sapmachine/installer.ts +++ b/src/distributions/sapmachine/installer.ts @@ -69,7 +69,7 @@ export class SapMachineDistribution extends JavaBase { if (!fetchedReleasesJson) { fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://backup.sapmachine.io/assets/data/sapmachine-releases-all.json' + 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json' ); }