Properly create workspace in OS tmpdir for generate-patch command

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2025-11-27 15:12:18 +01:00
parent a20d317255
commit d1e38a7a51
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Properly create workspace in OS temporary directory for `generate-patch` command
@@ -98,7 +98,9 @@ export default async (
throw new Error(`Could not find package ${packageArg} in source repo`);
}
const tmpDir = await fs.mkdtemp(os.tmpdir());
const tmpDir = await fs.mkdtemp(
joinPath(os.tmpdir(), 'backstage-repo-tools-generate-patch-'),
);
const ctx: PatchContext = {
sourceRepo,
targetRepo,