diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-07-24 09:45:25 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-07-24 09:45:25 +0200 |
| commit | 2b6a7ce27483b4f999c80b065c92c5e4566c90d8 (patch) | |
| tree | fc5c3826471c1fafa06a75e88578bbce48c4334d | |
| parent | 8036b894c4c8c9a24fe66a50570c09d91c11b349 (diff) | |
| download | dotfiles-2b6a7ce27483b4f999c80b065c92c5e4566c90d8.tar.gz dotfiles-2b6a7ce27483b4f999c80b065c92c5e4566c90d8.tar.bz2 dotfiles-2b6a7ce27483b4f999c80b065c92c5e4566c90d8.zip | |
bootstrap-win: echte winget-Fehlermeldung anzeigen, make-ID getauscht
Praxistest zeigte 4 Fehlschlaege (google.yamlfmt, GnuWin32.Gawk,
GnuWin32.Libxml2, GnuWin32.Make). Install-WingetPackage verschluckte
bisher die eigentliche winget-Fehlermeldung (Out-Null) - jetzt werden
die letzten Zeilen der winget-Ausgabe in der Warnung mit ausgegeben,
um die Ursache (falsche ID vs. anderer Installationsfehler) sichtbar
zu machen.
GnuWin32.Make (2006er-Softwarestand, Pflegezustand im winget-Repo
unklar) durch ezwinports.make ersetzt, einen aktiver gepflegten
GNU-Make-Port fuer Windows.
| -rw-r--r-- | bootstrap-win/neovim.ps1 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bootstrap-win/neovim.ps1 b/bootstrap-win/neovim.ps1 index 548583e..64de8a1 100644 --- a/bootstrap-win/neovim.ps1 +++ b/bootstrap-win/neovim.ps1 | |||
| @@ -53,10 +53,11 @@ function Install-WingetPackage([string]$Binary, [string]$Id) { | |||
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | Write-Step "winget install $Id" | 55 | Write-Step "winget install $Id" |
| 56 | winget install --id $Id -e --source winget --accept-package-agreements --accept-source-agreements --silent | Out-Null | 56 | $output = winget install --id $Id -e --source winget --accept-package-agreements --accept-source-agreements --silent 2>&1 |
| 57 | 57 | ||
| 58 | if ($LASTEXITCODE -ne 0) { | 58 | if ($LASTEXITCODE -ne 0) { |
| 59 | Write-Warn "winget install $Id fehlgeschlagen (Binary '$Binary' nicht gefunden). Pruefen mit: winget search $Id" | 59 | $lastLine = ($output | Select-Object -Last 3) -join " / " |
| 60 | Write-Warn "winget install $Id fehlgeschlagen (Binary '$Binary' nicht gefunden): $lastLine -- Pruefen mit: winget search $Id" | ||
| 60 | return | 61 | return |
| 61 | } | 62 | } |
| 62 | 63 | ||
| @@ -140,7 +141,10 @@ function Install-Tools { | |||
| 140 | # dauerhaft in den User-PATH kopieren): | 141 | # dauerhaft in den User-PATH kopieren): |
| 141 | # $userPath = [Environment]::GetEnvironmentVariable("PATH", "User") | 142 | # $userPath = [Environment]::GetEnvironmentVariable("PATH", "User") |
| 142 | # [Environment]::SetEnvironmentVariable("PATH", "$userPath;$env:USERPROFILE\dotfiles\windows\bin", "User") | 143 | # [Environment]::SetEnvironmentVariable("PATH", "$userPath;$env:USERPROFILE\dotfiles\windows\bin", "User") |
| 143 | Install-WingetPackage -Binary "make" -Id "GnuWin32.Make" | 144 | # GnuWin32.Make ist im Praxistest fehlgeschlagen (Paket 2006er-Stand, |
| 145 | # unklar ob im winget-Repo ueberhaupt noch gepflegt). ezwinports.make | ||
| 146 | # ist ein aktiver gepflegter GNU-Make-Port fuer Windows. | ||
| 147 | Install-WingetPackage -Binary "make" -Id "ezwinports.make" | ||
| 144 | } | 148 | } |
| 145 | 149 | ||
| 146 | function Install-Lsp { | 150 | function Install-Lsp { |
