don't include local packages while exporting uv.lock

This commit is contained in:
David Asamu
2025-10-15 23:02:02 +01:00
parent dddcb8ad8f
commit ef15bc7d67
+1 -1
View File
@@ -1331,7 +1331,7 @@ def _metadata_files(spec: ReqGenSpec) -> list[str]:
def _get_reqs_gen_cmd(spec: ReqGenSpec) -> str:
if spec.package_type == "pyproject" and spec.has_uv_lock:
return "uv export --no-hashes --no-dev -o 'requirements.txt'"
return "uv export --no-hashes --no-dev --no-emit-local -o 'requirements.txt'"
if spec.package_type == "pyproject":
return f"uv pip compile pyproject.toml -o 'requirements.txt' --constraint {CONSTRAINTS_PATH}"
return (