Skip to content

Commit

Permalink
Fix platform-dependent issues
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Jan 29, 2025
1 parent 62fa190 commit 735edd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions dev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Install-Uv {
[switch]$Update,
[string]$UvVersion = (Get-Content '.uv-version')
)
$Env:PATH = "$HOME/.cargo/bin$([System.IO.Path]::PathSeparator)$Env:PATH"
$Env:PATH = "$HOME/.local/bin$([System.IO.Path]::PathSeparator)$Env:PATH"
if ($Update) {
if (Get-Command 'uv' -ErrorAction 'Ignore') {
try { return uv self update $UvVersion }
Expand Down Expand Up @@ -223,7 +223,7 @@ function Invoke-Uv {
}
}
}
Process { if ($Run) { uv run $Run } }
Process { if ($Run) { uv run --no-sync --python $PythonVersion $Run } }
}

function Invoke-Just {
Expand Down Expand Up @@ -373,7 +373,9 @@ function Initialize-Machine {
}
}
# ? Log in to GitHub API
if ($Force -or !(gh auth status)) { gh auth login -Done }
try { $FoundGhLogin = gh auth status }
catch [System.Management.Automation.NativeCommandExitException] {}
if ($Force -or !$FoundGhLogin) { gh auth login }
}

function Initialize-Windows {
Expand Down
2 changes: 1 addition & 1 deletion packages/boilercore
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def sync_stages():
"-Command",
f"& {quote(executable)} -m ruff format {quote(stages_literals.as_posix())}",
],
capture_output=True,
)


Expand Down

0 comments on commit 735edd8

Please sign in to comment.