1222 Commits

Author SHA1 Message Date
Jochen Schalanda
65a30292a3 feat(nix): support upgrading Determinate Nix (#1366)
Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com>
2025-10-15 09:39:09 +02:00
Chinmay Dalal
e1b5b76d8e fix(nix): fix nix upgrade command selection for profiles in XDG_STATE_HOME (#1354) 2025-10-08 18:45:57 +02:00
Peter Storch
762a74f5f9 fix(containers): Docker update fails on M Macs due to platform / (#1360)
Suppresses the `--platform` parameter to docker pull if platform is only '/'.

fixes #1154
2025-10-06 20:10:09 +02:00
Nils
4c6dc8ff82 Fix WSL distribution name cleanup (#1348) 2025-09-28 19:35:18 +02:00
Andre Toerien
2aa3d94a98 feat(sudo): print warning if Windows Sudo is misconfigured 2025-09-28 19:14:45 +02:00
Andre Toerien
f4ac809dff refactor(deps): replace winapi with windows 2025-09-28 19:14:45 +02:00
Andre Toerien
0dee534f84 fix(sudo): reorder require_sudo() after print_separator() 2025-09-28 15:38:30 +02:00
Andre Toerien
ad9f2c2ccb feat(sudo): print warning if steps were skipped due to missing sudo 2025-09-28 15:38:30 +02:00
AThePeanut4
a886d20a7b refactor(sudo): rename interactive to login_shell 2025-09-28 14:57:40 +02:00
Andre Toerien
791993795a fix(sudo): use require_sudo for windows commands 2025-09-28 14:57:40 +02:00
Andre Toerien
a2afdb821f feat(sudo): add SudoKind::Null 2025-09-28 14:57:40 +02:00
Andre Toerien
47b51a8be0 feat: detect and warn if running as root 2025-09-28 14:57:40 +02:00
Andre Toerien
7c7e7c3ce4 Fix "WSL already reported" panic (#1344) 2025-09-28 08:25:10 +02:00
Andre Toerien
fec08a5ad1 Move step logic out of Powershell struct (#1345) 2025-09-27 19:55:56 +02:00
Andre Toerien
fb7ba52e39 Fixes for #1188; custom_commands broken (#1332)
Co-authored-by: GideonBear <87426140+GideonBear@users.noreply.github.com>
2025-09-20 13:59:19 +02:00
SteveCoding125
898823abb2 use login shell when executing topgrade (#1327) 2025-09-18 17:06:59 +02:00
Rafael Scalet
ccefd0a43a feat: add --no-tmux flag (#1328) 2025-09-18 14:01:19 +02:00
Rafael Scalet
99d989d486 feat: add step for mandb - user and system (update man entries) (#1319) 2025-09-14 08:08:52 +02:00
Nils
456d62224e chore: fix simple typos in code and comments (split var, whether, Extensions) (#1318)
Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear>
2025-09-13 17:12:39 +02:00
Rafael Scalet
b662fae11e feat: support for pkgfile (#1306) 2025-09-10 13:31:27 +02:00
Rafael Scalet
7b3fec0349 feat: add "show_skipped" option in config file #1280 (#1286) 2025-08-29 11:01:40 +02:00
uwuclxdy
547a6df2ae Support "Insiders" versions of VSCode and VSCodium (#1279) 2025-08-25 16:27:02 +02:00
Stuart Reilly
53d08cdf28 Sudo preserve env list argument is --preserve-env (#1276)
Sudo preserve-env

Sudo's preserve env list is `--preserve-env=...` not `--preserve_env=...`.

https://www.man7.org/linux/man-pages/man8/sudo.8.html
2025-08-20 17:33:35 +02:00
Ehren Bendler
a033152c60 Clippy fixes from rust 1.91 nightly (#1267) 2025-08-13 17:01:25 +02:00
Kian-Meng Ang
9f4cb8c1b6 feat: fix typos (#1221)
Co-authored-by: GideonBear <87426140+GideonBear@users.noreply.github.com>
2025-08-11 18:15:21 +02:00
Nils
91fc5e3902 chore(ci): Dependabot, workflow security (#1257)
Co-authored-by: StepSecurity Bot <bot@stepsecurity.io>
Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear>
Co-authored-by: GideonBear <87426140+GideonBear@users.noreply.github.com>
2025-08-11 10:24:18 +02:00
Falk Woldmann Lu
9048cd8f47 refactor: replace once_cell crate with std equivalent (#1260) 2025-08-11 09:57:32 +02:00
Andre Toerien
dbe1a5c988 refactor(sudo): add SudoKind::WinSudo 2025-08-06 15:21:51 +02:00
Andre Toerien
b6c1290934 refactor(sudo): add SudoExecuteOpts builder functions and preserve_env enum 2025-08-06 15:21:51 +02:00
Andre Toerien
306ff3c7c5 fix(sudo): prevent sudo_command = "sudo" finding gsudo 2025-08-06 15:21:51 +02:00
Andre Toerien
0e43e0d7fc refactor(yarn): remove unnecessary Yarn::yarn field 2025-08-06 15:21:51 +02:00
Andre Toerien
4da696321a refactor(apt): extract detect_apt() function 2025-08-06 15:21:51 +02:00
Andre Toerien
a95dd1e037 refactor: route sudo usage through Sudo::execute* 2025-08-06 15:21:51 +02:00
Andre Toerien
012a6bbde3 fix(sudo): set sudo flags depending on kind 2025-08-06 15:21:51 +02:00
Andre Toerien
32197f79f3 refactor: move RunType::execute to ExecutionContext 2025-08-06 15:21:51 +02:00
Alwin
257d202646 fix: skip gcloud update step if component manager is disabled (#1237) 2025-07-21 15:21:29 +02:00
Andre Toerien
3f9fe845e5 refactor(powershell): store powershell path directly 2025-07-18 09:21:31 +02:00
Andre Toerien
b166aae835 fix(powershell): run microsoft_store command directly 2025-07-18 09:21:31 +02:00
Andre Toerien
31f0097862 fix(powershell): remove mentions of USOClient 2025-07-18 09:21:31 +02:00
Andre Toerien
f78514dbd8 fix(powershell): execution policy check breaks when run in pwsh
When topgrade is run from within pwsh, the execution policy check breaks
for the Windows Update and Windows Store steps, because they use normal
powershell and the inherited PSModulePath environment variable breaks
the Microsoft.PowerShell.Security module import. So we unset that
variable to fix the issue, but also allow for those steps to use pwsh as
neither step actually requires PowerShell 5.

Co-authored-by: nistee <52573120+niStee@users.noreply.github.com>
2025-07-18 09:21:31 +02:00
Andre Toerien
9fc5fe9798 fix(powershell): don't use sudo with Update-Module for pwsh
Co-authored-by: Ao <197966644+ao-xing@users.noreply.github.com>
Co-authored-by: nistee <52573120+niStee@users.noreply.github.com>
2025-07-18 09:21:31 +02:00
Andre Toerien
6d14ac1693 refactor(powershell): cleanup and simplify code 2025-07-18 09:21:31 +02:00
Steve Brown
b8ab573c00 fix(powershell): add -Command to module update cmdline 2025-07-18 09:21:31 +02:00
Stuart Reilly
75ac6808a1 Move step running into enum for dynamic ordering (#1188)
Co-authored-by: Stuart Reilly <sreilly@scottlogic.com>
2025-07-16 11:16:27 +02:00
Max Kapur
6719ff93d8 feat(conda): allow configuring additional envs to update (#1048) 2025-07-15 13:15:42 +02:00
Tom van Dijk
6b8327faad feat(step): nix-helper (#1045) 2025-07-15 11:05:46 +02:00
Andreas Hoornstra
85c8bd2277 feat(winget): winget uses sudo when [windows] winget_use_sudo = true (#1061)
Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com>
2025-07-15 09:12:55 +02:00
Axel H.
23fff2a09f fix(tmux): support all default tpm locations (xdg and both hardcoded locations) (#1146) 2025-07-14 10:08:00 +02:00
Sam Hug
1114556661 windows update, use explicit reboot policy (#1143) 2025-07-14 09:57:00 +02:00
Sam Vente
f18ae089ff feat: suppress pixi release notes by default (#1225)
Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com>
2025-07-14 09:51:02 +02:00