mirror of https://github.com/actions/cache.git
dist
parent
6de5dcf3c3
commit
f45c4284d8
|
@ -93791,6 +93791,7 @@ const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4");
|
||||||
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
||||||
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
||||||
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
||||||
|
const s3Client = new client_s3_1.S3Client({ region });
|
||||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||||
// don't pass changes upstream
|
// don't pass changes upstream
|
||||||
const components = paths.slice();
|
const components = paths.slice();
|
||||||
|
@ -93819,7 +93820,6 @@ function getS3Prefix(paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const cacheEntry = {};
|
const cacheEntry = {};
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
// Find the most recent key matching one of the restoreKeys prefixes
|
// Find the most recent key matching one of the restoreKeys prefixes
|
||||||
for (const restoreKey of keys) {
|
for (const restoreKey of keys) {
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
|
@ -93857,7 +93857,6 @@ function downloadCache(archiveLocation, archivePath, options) {
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const archiveUrl = new URL(archiveLocation);
|
const archiveUrl = new URL(archiveLocation);
|
||||||
const objectKey = archiveUrl.pathname.slice(1);
|
const objectKey = archiveUrl.pathname.slice(1);
|
||||||
const command = new client_s3_1.GetObjectCommand({
|
const command = new client_s3_1.GetObjectCommand({
|
||||||
|
@ -93879,7 +93878,6 @@ function saveCache(key, paths, archivePath, { compressionMethod, enableCrossOsAr
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
compressionMethod,
|
compressionMethod,
|
||||||
enableCrossOsArchive
|
enableCrossOsArchive
|
||||||
|
|
|
@ -93791,6 +93791,7 @@ const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4");
|
||||||
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
||||||
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
||||||
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
||||||
|
const s3Client = new client_s3_1.S3Client({ region });
|
||||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||||
// don't pass changes upstream
|
// don't pass changes upstream
|
||||||
const components = paths.slice();
|
const components = paths.slice();
|
||||||
|
@ -93819,7 +93820,6 @@ function getS3Prefix(paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const cacheEntry = {};
|
const cacheEntry = {};
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
// Find the most recent key matching one of the restoreKeys prefixes
|
// Find the most recent key matching one of the restoreKeys prefixes
|
||||||
for (const restoreKey of keys) {
|
for (const restoreKey of keys) {
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
|
@ -93857,7 +93857,6 @@ function downloadCache(archiveLocation, archivePath, options) {
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const archiveUrl = new URL(archiveLocation);
|
const archiveUrl = new URL(archiveLocation);
|
||||||
const objectKey = archiveUrl.pathname.slice(1);
|
const objectKey = archiveUrl.pathname.slice(1);
|
||||||
const command = new client_s3_1.GetObjectCommand({
|
const command = new client_s3_1.GetObjectCommand({
|
||||||
|
@ -93879,7 +93878,6 @@ function saveCache(key, paths, archivePath, { compressionMethod, enableCrossOsAr
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
compressionMethod,
|
compressionMethod,
|
||||||
enableCrossOsArchive
|
enableCrossOsArchive
|
||||||
|
|
|
@ -93791,6 +93791,7 @@ const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4");
|
||||||
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
||||||
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
||||||
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
||||||
|
const s3Client = new client_s3_1.S3Client({ region });
|
||||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||||
// don't pass changes upstream
|
// don't pass changes upstream
|
||||||
const components = paths.slice();
|
const components = paths.slice();
|
||||||
|
@ -93819,7 +93820,6 @@ function getS3Prefix(paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const cacheEntry = {};
|
const cacheEntry = {};
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
// Find the most recent key matching one of the restoreKeys prefixes
|
// Find the most recent key matching one of the restoreKeys prefixes
|
||||||
for (const restoreKey of keys) {
|
for (const restoreKey of keys) {
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
|
@ -93857,7 +93857,6 @@ function downloadCache(archiveLocation, archivePath, options) {
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const archiveUrl = new URL(archiveLocation);
|
const archiveUrl = new URL(archiveLocation);
|
||||||
const objectKey = archiveUrl.pathname.slice(1);
|
const objectKey = archiveUrl.pathname.slice(1);
|
||||||
const command = new client_s3_1.GetObjectCommand({
|
const command = new client_s3_1.GetObjectCommand({
|
||||||
|
@ -93879,7 +93878,6 @@ function saveCache(key, paths, archivePath, { compressionMethod, enableCrossOsAr
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
compressionMethod,
|
compressionMethod,
|
||||||
enableCrossOsArchive
|
enableCrossOsArchive
|
||||||
|
|
|
@ -93791,6 +93791,7 @@ const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4");
|
||||||
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
||||||
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
||||||
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
||||||
|
const s3Client = new client_s3_1.S3Client({ region });
|
||||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||||
// don't pass changes upstream
|
// don't pass changes upstream
|
||||||
const components = paths.slice();
|
const components = paths.slice();
|
||||||
|
@ -93819,7 +93820,6 @@ function getS3Prefix(paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
function getCacheEntry(keys, paths, { compressionMethod, enableCrossOsArchive }) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const cacheEntry = {};
|
const cacheEntry = {};
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
// Find the most recent key matching one of the restoreKeys prefixes
|
// Find the most recent key matching one of the restoreKeys prefixes
|
||||||
for (const restoreKey of keys) {
|
for (const restoreKey of keys) {
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
|
@ -93857,7 +93857,6 @@ function downloadCache(archiveLocation, archivePath, options) {
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const archiveUrl = new URL(archiveLocation);
|
const archiveUrl = new URL(archiveLocation);
|
||||||
const objectKey = archiveUrl.pathname.slice(1);
|
const objectKey = archiveUrl.pathname.slice(1);
|
||||||
const command = new client_s3_1.GetObjectCommand({
|
const command = new client_s3_1.GetObjectCommand({
|
||||||
|
@ -93879,7 +93878,6 @@ function saveCache(key, paths, archivePath, { compressionMethod, enableCrossOsAr
|
||||||
if (!region) {
|
if (!region) {
|
||||||
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
throw new Error("Environment variable RUNS_ON_AWS_REGION not set");
|
||||||
}
|
}
|
||||||
const s3Client = new client_s3_1.S3Client({ region });
|
|
||||||
const s3Prefix = getS3Prefix(paths, {
|
const s3Prefix = getS3Prefix(paths, {
|
||||||
compressionMethod,
|
compressionMethod,
|
||||||
enableCrossOsArchive
|
enableCrossOsArchive
|
||||||
|
|
Loading…
Reference in New Issue