Merge pull request #31909 from backstage/freben/generate-patch

Properly create workspace in OS tmpdir for generate-patch command
This commit is contained in:
Fredrik Adelöw
2025-11-27 16:34:10 +01:00
committed by GitHub
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,