Skip to content

Commit e89da11

Browse files
committed
remove warning
1 parent e604389 commit e89da11

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/python/uv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (u *UvPythonRunner) runWithNoMaterialization(ctx context.Context, execCtx *
155155
}
156156

157157
// Fall back to requirements.txt or no dependencies (existing behavior)
158-
flags := []string{"run", "--no-config", "--no-sync", "--python", pythonVersion}
158+
flags := []string{"run", "--no-config", "--no-project", "--python", pythonVersion}
159159
if execCtx.requirementsTxt != "" {
160160
flags = append(flags, "--with-requirements", execCtx.requirementsTxt)
161161
}
@@ -289,7 +289,7 @@ func (u *UvPythonRunner) runWithMaterialization(ctx context.Context, execCtx *ex
289289
} else {
290290
// Fall back to requirements.txt or no dependencies
291291
runRepo = execCtx.repo
292-
flags = []string{"run", "--no-config", "--no-sync", "--python", pythonVersion}
292+
flags = []string{"run", "--no-config", "--no-project", "--python", pythonVersion}
293293
if execCtx.requirementsTxt != "" {
294294
flags = append(flags, "--with-requirements", execCtx.requirementsTxt)
295295
}

pkg/python/uv_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func Test_uvPythonRunner_Run(t *testing.T) {
4242
cmd := new(mockCmd)
4343
cmd.On("Run", mock.Anything, repo, &CommandInstance{
4444
Name: "~/.bruin/uv",
45-
Args: []string{"run", "--no-config", "--no-sync", "--python", "3.11", "--module", module},
45+
Args: []string{"run", "--no-config", "--no-project", "--python", "3.11", "--module", module},
4646
}).Return(assert.AnError)
4747

4848
inst := new(mockUvInstaller)
@@ -69,7 +69,7 @@ func Test_uvPythonRunner_Run(t *testing.T) {
6969
cmd := new(mockCmd)
7070
cmd.On("Run", mock.Anything, repo, &CommandInstance{
7171
Name: "~/.bruin/uv",
72-
Args: []string{"run", "--no-config", "--no-sync", "--python", "3.11", "--with-requirements", "/path/to/requirements.txt", "--module", module},
72+
Args: []string{"run", "--no-config", "--no-project", "--python", "3.11", "--with-requirements", "/path/to/requirements.txt", "--module", module},
7373
}).Return(assert.AnError)
7474

7575
inst := new(mockUvInstaller)
@@ -96,7 +96,7 @@ func Test_uvPythonRunner_Run(t *testing.T) {
9696
cmd := new(mockCmd)
9797
cmd.On("Run", mock.Anything, repo, &CommandInstance{
9898
Name: "~/.bruin/uv",
99-
Args: []string{"run", "--no-config", "--no-sync", "--python", "3.13", "--with-requirements", "/path/to/requirements.txt", "--module", module},
99+
Args: []string{"run", "--no-config", "--no-project", "--python", "3.13", "--with-requirements", "/path/to/requirements.txt", "--module", module},
100100
}).Return(assert.AnError)
101101

102102
inst := new(mockUvInstaller)

0 commit comments

Comments
 (0)