Skip to content

Commit 34fa9e0

Browse files
fix(nx-python): prevent generator from running on Uv projects
1 parent 986470e commit 34fa9e0

File tree

1 file changed

+6
-0
lines changed
  • packages/nx-python/src/generators/migrate-to-shared-venv

1 file changed

+6
-0
lines changed

packages/nx-python/src/generators/migrate-to-shared-venv/generator.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ function updateRootPoetryLock() {
110110
}
111111

112112
async function generator(host: Tree, options: Schema) {
113+
if (host.exists('uv.lock')) {
114+
throw new Error(
115+
'Uv project detected, this generator is only for poetry projects.',
116+
);
117+
}
118+
113119
await checkPoetryExecutable();
114120

115121
await addFiles(host, options);

0 commit comments

Comments
 (0)