From 5cc6904a628c5c4e441c72036f45f738400b86a2 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 21 May 2024 16:27:55 +0000 Subject: [PATCH] build --- dist/restore-only/index.js | 4 +++- dist/restore/index.js | 4 +++- dist/save-only/index.js | 4 +++- dist/save/index.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index f9f8d38..9b3592c 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -93787,11 +93787,13 @@ const bucketName = process.env.RUNS_ON_S3_BUCKET_CACHE; const region = process.env.RUNS_ON_AWS_REGION || process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION; +const forcePathStyle = process.env.RUNS_ON_S3_FORCE_PATH_STYLE === "true" || + process.env.AWS_S3_FORCE_PATH_STYLE === "true"; const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4"); const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024; const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8"); const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024; -const s3Client = new client_s3_1.S3Client({ region }); +const s3Client = new client_s3_1.S3Client({ region, forcePathStyle }); function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) { // don't pass changes upstream const components = paths.slice(); diff --git a/dist/restore/index.js b/dist/restore/index.js index 0bb899b..359ee36 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -93787,11 +93787,13 @@ const bucketName = process.env.RUNS_ON_S3_BUCKET_CACHE; const region = process.env.RUNS_ON_AWS_REGION || process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION; +const forcePathStyle = process.env.RUNS_ON_S3_FORCE_PATH_STYLE === "true" || + process.env.AWS_S3_FORCE_PATH_STYLE === "true"; const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4"); const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024; const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8"); const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024; -const s3Client = new client_s3_1.S3Client({ region }); +const s3Client = new client_s3_1.S3Client({ region, forcePathStyle }); function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) { // don't pass changes upstream const components = paths.slice(); diff --git a/dist/save-only/index.js b/dist/save-only/index.js index ca7412b..0909c56 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -93787,11 +93787,13 @@ const bucketName = process.env.RUNS_ON_S3_BUCKET_CACHE; const region = process.env.RUNS_ON_AWS_REGION || process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION; +const forcePathStyle = process.env.RUNS_ON_S3_FORCE_PATH_STYLE === "true" || + process.env.AWS_S3_FORCE_PATH_STYLE === "true"; const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4"); const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024; const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8"); const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024; -const s3Client = new client_s3_1.S3Client({ region }); +const s3Client = new client_s3_1.S3Client({ region, forcePathStyle }); function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) { // don't pass changes upstream const components = paths.slice(); diff --git a/dist/save/index.js b/dist/save/index.js index dd7591c..9fee3a6 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -93787,11 +93787,13 @@ const bucketName = process.env.RUNS_ON_S3_BUCKET_CACHE; const region = process.env.RUNS_ON_AWS_REGION || process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION; +const forcePathStyle = process.env.RUNS_ON_S3_FORCE_PATH_STYLE === "true" || + process.env.AWS_S3_FORCE_PATH_STYLE === "true"; const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4"); const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024; const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8"); const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024; -const s3Client = new client_s3_1.S3Client({ region }); +const s3Client = new client_s3_1.S3Client({ region, forcePathStyle }); function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) { // don't pass changes upstream const components = paths.slice();