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

Method lock

packages/python/src/uv.ts:168–183  ·  view source on GitHub ↗
(options: {
    projectDir: string;
    venvPath: string;
    noBuild?: boolean;
    upgrade?: boolean;
  })

Source from the content-addressed store, hash-verified

166 }
167
168 async lock(options: {
169 projectDir: string;
170 venvPath: string;
171 noBuild?: boolean;
172 upgrade?: boolean;
173 }): Promise<void> {
174 const { projectDir, venvPath, noBuild, upgrade } = options;
175 const args = ['lock', '--python', getVenvPythonBin(venvPath)];
176 if (noBuild) {
177 args.push('--no-build');
178 }
179 if (upgrade) {
180 args.push('--upgrade');
181 }
182 await this.runUvCmd(args, projectDir, venvPath);
183 }
184
185 async addDependencies(options: {
186 venvPath: string;

Callers 1

ensureUvProjectFunction · 0.45

Calls 3

runUvCmdMethod · 0.95
getVenvPythonBinFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected