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

Method sync

packages/python/src/uv.ts:131–166  ·  view source on GitHub ↗
(options: {
    venvPath: string;
    projectDir: string;
    locked?: boolean;
    frozen?: boolean;
    noBuild?: boolean;
    noInstallProject?: boolean;
    pythonPlatform?: string;
  })

Source from the content-addressed store, hash-verified

129 }
130
131 async sync(options: {
132 venvPath: string;
133 projectDir: string;
134 locked?: boolean;
135 frozen?: boolean;
136 noBuild?: boolean;
137 noInstallProject?: boolean;
138 pythonPlatform?: string;
139 }): Promise<void> {
140 const {
141 venvPath,
142 projectDir,
143 locked,
144 frozen,
145 noBuild,
146 noInstallProject,
147 pythonPlatform,
148 } = options;
149 const args = ['sync', '--active', '--no-dev', '--link-mode', 'hardlink'];
150 if (frozen) {
151 args.push('--frozen');
152 } else if (locked) {
153 args.push('--locked');
154 }
155 if (noBuild) {
156 args.push('--no-build');
157 }
158 if (noInstallProject) {
159 args.push('--no-install-project');
160 }
161 if (pythonPlatform) {
162 args.push('--python-platform', pythonPlatform);
163 }
164 args.push('--no-editable');
165 await this.runUvCmd(args, projectDir, venvPath);
166 }
167
168 async lock(options: {
169 projectDir: string;

Callers 3

buildFunction · 0.45
findUvInPathFunction · 0.45
findUvBinaryFunction · 0.45

Calls 2

runUvCmdMethod · 0.95
pushMethod · 0.65

Tested by

no test coverage detected