From 53d0c08d5179ba10d4c2b01e1a20915d48dbdc05 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Thu, 28 Nov 2024 07:43:01 -0800 Subject: [PATCH] Force use of Azure for restoreCacheV2 --- dist/restore-only/index.js | 2 ++ dist/restore/index.js | 2 ++ dist/save-only/index.js | 2 ++ dist/save/index.js | 2 ++ 4 files changed, 8 insertions(+) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index 3d2a7f2..52efcbc 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -6050,6 +6050,8 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr */ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { + // Override UploadOptions to force the use of Azure + options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; core.debug('Resolved Keys:'); diff --git a/dist/restore/index.js b/dist/restore/index.js index 1501f3b..ec6d3f0 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -6050,6 +6050,8 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr */ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { + // Override UploadOptions to force the use of Azure + options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; core.debug('Resolved Keys:'); diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 1763139..0c082e9 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -6050,6 +6050,8 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr */ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { + // Override UploadOptions to force the use of Azure + options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; core.debug('Resolved Keys:'); diff --git a/dist/save/index.js b/dist/save/index.js index 39f7dd2..4b7acca 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -6050,6 +6050,8 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr */ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { + // Override UploadOptions to force the use of Azure + options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); restoreKeys = restoreKeys || []; const keys = [primaryKey, ...restoreKeys]; core.debug('Resolved Keys:');