You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade nix step is broken on nix 2.21.0 and higher
warning: Package name '.*' does not match any packages in the profile.
warning: No packages to upgrade. Use 'nix profile list' to see the current profile.
topgrade is using nix profile upgrade '.*' which is no longer work as expected
if nix version is higher than 2.21 topgrade should use either nix profile upgrade --regex '.*' or nix profile upgrade --all
Problem persists without calling from topgrade
Yes
No
Did you run topgrade through Remote Execution
Yes
No
Additional Details
Operation System/Version
❯ uname -a
Darwin 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:37 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6031 arm64
~
❯ nix --version
nix (Nix) 2.21.2
Topgrade version (topgrade -V) 14.0.1
Verbose Output (topgrade -v)
...
── 04:03:30 - Nix ──────────────────────────────────────────────────────────────
DEBUG Executing command `/nix/var/nix/profiles/default/bin/nix-channel --update`
unpacking 0 channels...
DEBUG Executing command `/nix/var/nix/profiles/default/bin/nix --extra-experimental-features nix-command profile upgrade '.*' --verbose`
warning: Package name '.*' does not match any packages in the profile.
warning: No packages to upgrade. Use 'nix profile list' to see the current profile.
...
The text was updated successfully, but these errors were encountered:
Erroneous Behavior
Upgrade nix step is broken on nix 2.21.0 and higher
Expected Behavior
nix packages is upgraded
Steps to reproduce
Possible Cause (Optional)
NixOS/nix#10166
topgrade is using
nix profile upgrade '.*'
which is no longer work as expectedif nix version is higher than 2.21 topgrade should use either
nix profile upgrade --regex '.*'
ornix profile upgrade --all
Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
Additional Details
topgrade -V
) 14.0.1Verbose Output (
topgrade -v
)The text was updated successfully, but these errors were encountered: