generate fresh uuid based on review comment

Signed-off-by: Mark Foresta <Mark.Foresta691@gmail.com>
This commit is contained in:
Mark Foresta
2024-10-12 10:44:45 -04:00
committed by blam
parent 38d71169ef
commit 7b6cb4b50c
@@ -36,6 +36,8 @@ import fs from 'fs-extra';
import { PermissionEvaluator } from '@backstage/plugin-permission-common';
import { BackstageCredentials } from '@backstage/backend-plugin-api';
import type { UserEntity } from '@backstage/catalog-model';
import { v4 as uuid } from 'uuid';
interface DryRunInput {
spec: TaskSpec;
@@ -99,9 +101,7 @@ export function createDryRunner(options: TemplateTesterCreateOptions) {
}
const basePath = fileURLToPath(new URL(baseUrl));
const contentsPath = path.dirname(basePath);
const dryRunId = contentsPath
.replace(options.workingDirectory, '')
.replace('dry-run-content-', '');
const dryRunId = uuid()
const log = new Array<{ body: JsonObject }>();