cache key should not contain whitespaces

pull/353/head
Frostebite 2022-03-09 21:42:44 +00:00
parent 755ae366fb
commit 5e53df432d
3 changed files with 5 additions and 1 deletions

2
dist/index.js vendored
View File

@ -621,6 +621,7 @@ const remote_client_logger_1 = __nccwpck_require__(28082);
class Caching {
static PushToCache(cacheFolder, sourceFolder, cacheKey) {
return __awaiter(this, void 0, void 0, function* () {
cacheKey = cacheKey.replace(' ', '');
const startPath = process.cwd();
try {
if (!fs_1.default.existsSync(cacheFolder)) {
@ -662,6 +663,7 @@ class Caching {
}
static PullFromCache(cacheFolder, destinationFolder, cacheKey = ``) {
return __awaiter(this, void 0, void 0, function* () {
cacheKey = cacheKey.replace(' ', '');
const startPath = process.cwd();
remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`);
try {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -10,6 +10,7 @@ import { RemoteClientLogger } from './remote-client-logger';
export class Caching {
public static async PushToCache(cacheFolder: string, sourceFolder: string, cacheKey: string) {
cacheKey = cacheKey.replace(' ', '');
const startPath = process.cwd();
try {
if (!fs.existsSync(cacheFolder)) {
@ -55,6 +56,7 @@ export class Caching {
process.chdir(`${startPath}`);
}
public static async PullFromCache(cacheFolder: string, destinationFolder: string, cacheKey: string = ``) {
cacheKey = cacheKey.replace(' ', '');
const startPath = process.cwd();
RemoteClientLogger.log(`Caching for ${path.basename(destinationFolder)}`);
try {