|
|
|
|
@ -504,7 +504,7 @@ const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(31011)
|
|
|
|
|
const cli_functions_repository_1 = __nccwpck_require__(85301);
|
|
|
|
|
const aws_cli_commands_1 = __nccwpck_require__(6371);
|
|
|
|
|
const caching_1 = __nccwpck_require__(32885);
|
|
|
|
|
const lfs_hashing_1 = __nccwpck_require__(85204);
|
|
|
|
|
const lfs_hashing_1 = __nccwpck_require__(8915);
|
|
|
|
|
const setup_cloud_runner_repository_1 = __nccwpck_require__(68258);
|
|
|
|
|
class CLI {
|
|
|
|
|
static get cliMode() {
|
|
|
|
|
@ -2130,7 +2130,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
|
|
|
|
class LocalDockerCloudRunner {
|
|
|
|
|
cleanupSharedResources(
|
|
|
|
|
@ -2190,7 +2190,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
|
|
|
|
class LocalCloudRunner {
|
|
|
|
|
cleanupSharedResources(
|
|
|
|
|
@ -2533,8 +2533,8 @@ const path_1 = __importDefault(__nccwpck_require__(71017));
|
|
|
|
|
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
|
|
|
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
|
|
|
|
const cloud_runner_folders_1 = __nccwpck_require__(13527);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const lfs_hashing_1 = __nccwpck_require__(85204);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
const lfs_hashing_1 = __nccwpck_require__(8915);
|
|
|
|
|
const remote_client_logger_1 = __nccwpck_require__(59412);
|
|
|
|
|
const cli_1 = __nccwpck_require__(55651);
|
|
|
|
|
const cli_functions_repository_1 = __nccwpck_require__(85301);
|
|
|
|
|
@ -2565,6 +2565,8 @@ class Caching {
|
|
|
|
|
}
|
|
|
|
|
static PushToCache(cacheFolder, sourceFolder, cacheArtifactName) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${cacheFolder}`);
|
|
|
|
|
cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${sourceFolder}`);
|
|
|
|
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
|
|
|
|
const startPath = process.cwd();
|
|
|
|
|
try {
|
|
|
|
|
@ -2601,6 +2603,8 @@ class Caching {
|
|
|
|
|
}
|
|
|
|
|
static PullFromCache(cacheFolder, destinationFolder, cacheArtifactName = ``) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${cacheFolder}`);
|
|
|
|
|
cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationFolder}`);
|
|
|
|
|
cacheArtifactName = cacheArtifactName.replace(' ', '');
|
|
|
|
|
const startPath = process.cwd();
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`);
|
|
|
|
|
@ -2673,155 +2677,6 @@ __decorate([
|
|
|
|
|
exports.Caching = Caching;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 46920:
|
|
|
|
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
|
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.CloudRunnerSystem = void 0;
|
|
|
|
|
const child_process_1 = __nccwpck_require__(32081);
|
|
|
|
|
const remote_client_logger_1 = __nccwpck_require__(59412);
|
|
|
|
|
class CloudRunnerSystem {
|
|
|
|
|
static Run(command, suppressError = false, suppressLogs = false) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
for (const element of command.split(`\n`)) {
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(element);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return yield new Promise((promise, throwError) => {
|
|
|
|
|
let output = '';
|
|
|
|
|
const child = child_process_1.exec(command, (error, stdout, stderr) => {
|
|
|
|
|
if (!suppressError && error) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(error.toString());
|
|
|
|
|
throwError(error);
|
|
|
|
|
}
|
|
|
|
|
if (stderr) {
|
|
|
|
|
const diagnosticOutput = `${stderr.toString()}`;
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.logCliDiagnostic(diagnosticOutput);
|
|
|
|
|
}
|
|
|
|
|
output += diagnosticOutput;
|
|
|
|
|
}
|
|
|
|
|
const outputChunk = `${stdout}`;
|
|
|
|
|
output += outputChunk;
|
|
|
|
|
});
|
|
|
|
|
child.on('close', (code) => {
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(`[${code}]`);
|
|
|
|
|
}
|
|
|
|
|
if (code !== 0 && !suppressError) {
|
|
|
|
|
throwError(output);
|
|
|
|
|
}
|
|
|
|
|
const outputLines = output.split(`\n`);
|
|
|
|
|
for (const element of outputLines) {
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(element);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
promise(output);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
exports.CloudRunnerSystem = CloudRunnerSystem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 85204:
|
|
|
|
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
|
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
|
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
|
|
};
|
|
|
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
|
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.LFSHashing = void 0;
|
|
|
|
|
const path_1 = __importDefault(__nccwpck_require__(71017));
|
|
|
|
|
const cloud_runner_folders_1 = __nccwpck_require__(13527);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const fs_1 = __importDefault(__nccwpck_require__(57147));
|
|
|
|
|
const console_1 = __nccwpck_require__(96206);
|
|
|
|
|
const cli_1 = __nccwpck_require__(55651);
|
|
|
|
|
const cli_functions_repository_1 = __nccwpck_require__(85301);
|
|
|
|
|
class LFSHashing {
|
|
|
|
|
static createLFSHashFiles() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
try {
|
|
|
|
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-guid`);
|
|
|
|
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`md5sum .lfs-assets-guid > .lfs-assets-guid-sum`);
|
|
|
|
|
console_1.assert(fs_1.default.existsSync(`.lfs-assets-guid-sum`));
|
|
|
|
|
console_1.assert(fs_1.default.existsSync(`.lfs-assets-guid`));
|
|
|
|
|
const lfsHashes = {
|
|
|
|
|
lfsGuid: fs_1.default
|
|
|
|
|
.readFileSync(`${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.repoPathFull, `.lfs-assets-guid`)}`, 'utf8')
|
|
|
|
|
.replace(/\n/g, ``),
|
|
|
|
|
lfsGuidSum: fs_1.default
|
|
|
|
|
.readFileSync(`${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.repoPathFull, `.lfs-assets-guid-sum`)}`, 'utf8')
|
|
|
|
|
.replace(' .lfs-assets-guid', '')
|
|
|
|
|
.replace(/\n/g, ``),
|
|
|
|
|
};
|
|
|
|
|
return lfsHashes;
|
|
|
|
|
}
|
|
|
|
|
catch (error) {
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
static hashAllFiles(folder) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
const startPath = process.cwd();
|
|
|
|
|
process.chdir(folder);
|
|
|
|
|
const result = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`find -type f -exec md5sum "{}" + | sort | md5sum`))
|
|
|
|
|
.replace(/\n/g, '')
|
|
|
|
|
.split(` `)[0];
|
|
|
|
|
process.chdir(startPath);
|
|
|
|
|
return result;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
static hash() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
const folder = cli_1.CLI.options['cachePushFrom'];
|
|
|
|
|
LFSHashing.hashAllFiles(folder);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
__decorate([
|
|
|
|
|
cli_functions_repository_1.CliFunction(`hash`, `hash all folder contents`)
|
|
|
|
|
], LFSHashing, "hash", null);
|
|
|
|
|
exports.LFSHashing = LFSHashing;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 59412:
|
|
|
|
|
@ -2883,13 +2738,13 @@ const fs_1 = __importDefault(__nccwpck_require__(57147));
|
|
|
|
|
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
|
|
|
|
const cloud_runner_folders_1 = __nccwpck_require__(13527);
|
|
|
|
|
const caching_1 = __nccwpck_require__(32885);
|
|
|
|
|
const lfs_hashing_1 = __nccwpck_require__(85204);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const lfs_hashing_1 = __nccwpck_require__(8915);
|
|
|
|
|
const remote_client_logger_1 = __nccwpck_require__(59412);
|
|
|
|
|
const path_1 = __importDefault(__nccwpck_require__(71017));
|
|
|
|
|
const console_1 = __nccwpck_require__(96206);
|
|
|
|
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
|
|
|
|
const cli_functions_repository_1 = __nccwpck_require__(85301);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
class SetupCloudRunnerRepository {
|
|
|
|
|
static run() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
@ -3258,6 +3113,73 @@ class CloudRunnerQueryOverride {
|
|
|
|
|
exports["default"] = CloudRunnerQueryOverride;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 99393:
|
|
|
|
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
|
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.CloudRunnerSystem = void 0;
|
|
|
|
|
const child_process_1 = __nccwpck_require__(32081);
|
|
|
|
|
const remote_client_logger_1 = __nccwpck_require__(59412);
|
|
|
|
|
class CloudRunnerSystem {
|
|
|
|
|
static Run(command, suppressError = false, suppressLogs = false) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
for (const element of command.split(`\n`)) {
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(element);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return yield new Promise((promise, throwError) => {
|
|
|
|
|
let output = '';
|
|
|
|
|
const child = child_process_1.exec(command, (error, stdout, stderr) => {
|
|
|
|
|
if (!suppressError && error) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(error.toString());
|
|
|
|
|
throwError(error);
|
|
|
|
|
}
|
|
|
|
|
if (stderr) {
|
|
|
|
|
const diagnosticOutput = `${stderr.toString()}`;
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.logCliDiagnostic(diagnosticOutput);
|
|
|
|
|
}
|
|
|
|
|
output += diagnosticOutput;
|
|
|
|
|
}
|
|
|
|
|
const outputChunk = `${stdout}`;
|
|
|
|
|
output += outputChunk;
|
|
|
|
|
});
|
|
|
|
|
child.on('close', (code) => {
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(`[${code}]`);
|
|
|
|
|
}
|
|
|
|
|
if (code !== 0 && !suppressError) {
|
|
|
|
|
throwError(output);
|
|
|
|
|
}
|
|
|
|
|
const outputLines = output.split(`\n`);
|
|
|
|
|
for (const element of outputLines) {
|
|
|
|
|
if (!suppressLogs) {
|
|
|
|
|
remote_client_logger_1.RemoteClientLogger.log(element);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
promise(output);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
exports.CloudRunnerSystem = CloudRunnerSystem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 69862:
|
|
|
|
|
@ -3278,8 +3200,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const input_1 = __importDefault(__nccwpck_require__(91933));
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
class DependencyOverrideService {
|
|
|
|
|
static CheckHealth() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
@ -3305,6 +3227,88 @@ class DependencyOverrideService {
|
|
|
|
|
exports["default"] = DependencyOverrideService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 8915:
|
|
|
|
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
|
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
|
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
|
|
};
|
|
|
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
|
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.LFSHashing = void 0;
|
|
|
|
|
const path_1 = __importDefault(__nccwpck_require__(71017));
|
|
|
|
|
const cloud_runner_folders_1 = __nccwpck_require__(13527);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
const fs_1 = __importDefault(__nccwpck_require__(57147));
|
|
|
|
|
const console_1 = __nccwpck_require__(96206);
|
|
|
|
|
const cli_1 = __nccwpck_require__(55651);
|
|
|
|
|
const cli_functions_repository_1 = __nccwpck_require__(85301);
|
|
|
|
|
class LFSHashing {
|
|
|
|
|
static createLFSHashFiles() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
try {
|
|
|
|
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-guid`);
|
|
|
|
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`md5sum .lfs-assets-guid > .lfs-assets-guid-sum`);
|
|
|
|
|
console_1.assert(fs_1.default.existsSync(`.lfs-assets-guid-sum`));
|
|
|
|
|
console_1.assert(fs_1.default.existsSync(`.lfs-assets-guid`));
|
|
|
|
|
const lfsHashes = {
|
|
|
|
|
lfsGuid: fs_1.default
|
|
|
|
|
.readFileSync(`${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.repoPathFull, `.lfs-assets-guid`)}`, 'utf8')
|
|
|
|
|
.replace(/\n/g, ``),
|
|
|
|
|
lfsGuidSum: fs_1.default
|
|
|
|
|
.readFileSync(`${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.repoPathFull, `.lfs-assets-guid-sum`)}`, 'utf8')
|
|
|
|
|
.replace(' .lfs-assets-guid', '')
|
|
|
|
|
.replace(/\n/g, ``),
|
|
|
|
|
};
|
|
|
|
|
return lfsHashes;
|
|
|
|
|
}
|
|
|
|
|
catch (error) {
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
static hashAllFiles(folder) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
const startPath = process.cwd();
|
|
|
|
|
process.chdir(folder);
|
|
|
|
|
const result = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`find -type f -exec md5sum "{}" + | sort | md5sum`))
|
|
|
|
|
.replace(/\n/g, '')
|
|
|
|
|
.split(` `)[0];
|
|
|
|
|
process.chdir(startPath);
|
|
|
|
|
return result;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
static hash() {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
const folder = cli_1.CLI.options['cachePushFrom'];
|
|
|
|
|
LFSHashing.hashAllFiles(folder);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
__decorate([
|
|
|
|
|
cli_functions_repository_1.CliFunction(`hash`, `hash all folder contents`)
|
|
|
|
|
], LFSHashing, "hash", null);
|
|
|
|
|
exports.LFSHashing = LFSHashing;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 35346:
|
|
|
|
|
@ -4117,7 +4121,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.GenericInputReader = void 0;
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
class GenericInputReader {
|
|
|
|
|
static Run(command) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
@ -4151,7 +4155,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.GitRepoReader = void 0;
|
|
|
|
|
const console_1 = __nccwpck_require__(96206);
|
|
|
|
|
const fs_1 = __importDefault(__nccwpck_require__(57147));
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
|
|
|
|
class GitRepoReader {
|
|
|
|
|
static GetRemote() {
|
|
|
|
|
@ -4213,7 +4217,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
|
|
exports.GithubCliReader = void 0;
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(46920);
|
|
|
|
|
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
|
|
|
|
const core = __importStar(__nccwpck_require__(42186));
|
|
|
|
|
class GithubCliReader {
|
|
|
|
|
static GetGitHubAuthToken() {
|
|
|
|
|
|