Skip to content

Commit

Permalink
Merge pull request #212 from bruin-data/patch/minor-uv-fixes
Browse files Browse the repository at this point in the history
go back to default shell
  • Loading branch information
albertobruin authored Nov 14, 2024
2 parents c73b784 + 742ec21 commit 5fdad0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ Temporary Items
bin
__pycache__/
.bruin.yml
!templates/duckdb/.bruin.yml
!templates/chess/.bruin.yml
!templates/*/.bruin.yml
dist/
*.pyc

Expand Down
2 changes: 1 addition & 1 deletion pkg/python/uv.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (u *UvChecker) installUvCommand(ctx context.Context, dest string) error {
if runtime.GOOS == "windows" {
commandInstance = exec.Command(Shell, ShellSubcommandFlag, fmt.Sprintf("winget install --accept-package-agreements --accept-source-agreements --silent --id=astral-sh.uv --version %s --location %s -e", UvVersion, dest)) //nolint:gosec
} else {
commandInstance = exec.Command("/bin/bash", "-c", fmt.Sprintf("set -o pipefail; curl -LsSf https://astral.sh/uv/%s/install.sh | UV_INSTALL_DIR=\"%s\" NO_MODIFY_PATH=1 bash", UvVersion, dest)) //nolint:gosec
commandInstance = exec.Command(Shell, ShellSubcommandFlag, fmt.Sprintf("set -e; curl -LsSf https://astral.sh/uv/%s/install.sh | UV_INSTALL_DIR=\"%s\" NO_MODIFY_PATH=1 sh", UvVersion, dest)) //nolint:gosec
}

err := u.cmd.RunAnyCommand(ctx, commandInstance)
Expand Down

0 comments on commit 5fdad0d

Please sign in to comment.