MCPcopy Create free account
hub / github.com/vercel/vercel / filterUnsafeUvPipArgs

Function filterUnsafeUvPipArgs

packages/python/src/uv.ts:446–450  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

444}
445
446export function filterUnsafeUvPipArgs(args: string[]): string[] {
447 // `--no-warn-script-location` is not supported/safe with `uv pip install`,
448 // so strip it out when using uv while still allowing it for plain pip.
449 return args.filter(arg => arg !== '--no-warn-script-location');
450}
451
452export function getProtectedUvEnv(
453 baseEnv: NodeJS.ProcessEnv = process.env,

Callers 1

pipInstallFunction · 0.90

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected