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

Function findUvOnBuildImage

packages/python/src/uv.ts:46–51  ·  view source on GitHub ↗
(
  knownPath: string = KNOWN_UV_PATH
)

Source from the content-addressed store, hash-verified

44 * scanning PATH via `which`.
45 */
46export function findUvOnBuildImage(
47 knownPath: string = KNOWN_UV_PATH
48): string | null {
49 if (!process.env.VERCEL_BUILD_IMAGE) return null;
50 return fs.existsSync(knownPath) ? knownPath : null;
51}
52
53export function findUvInPath(): string | null {
54 return findUvOnBuildImage() ?? which.sync('uv', { nothrow: true });

Callers 3

unit.test.tsFile · 0.90
findUvInPathFunction · 0.85
findUvBinaryFunction · 0.85

Calls 1

existsSyncMethod · 0.45

Tested by

no test coverage detected