( baseEnv: NodeJS.ProcessEnv = process.env, uvCacheDir?: string )
| 450 | } |
| 451 | |
| 452 | export function getProtectedUvEnv( |
| 453 | baseEnv: NodeJS.ProcessEnv = process.env, |
| 454 | uvCacheDir?: string |
| 455 | ): NodeJS.ProcessEnv { |
| 456 | const env: NodeJS.ProcessEnv = { |
| 457 | ...baseEnv, |
| 458 | UV_PYTHON_DOWNLOADS: UV_PYTHON_DOWNLOADS_MODE, |
| 459 | }; |
| 460 | if (uvCacheDir) { |
| 461 | env.UV_CACHE_DIR = uvCacheDir; |
| 462 | } |
| 463 | return env; |
| 464 | } |
| 465 | |
| 466 | /** |
| 467 | * Directory name where the uv binary will be bundled in the Lambda package. |
no outgoing calls
no test coverage detected