run-as-root / rooter

rooter is a local environment manager that helps orchestrating local developer environments for multiple projects
Apache License 2.0
13 stars 0 forks source link

rooter selfupdate #13

Closed MPietrukowski closed 1 month ago

MPietrukowski commented 1 month ago

CLI command rooter selfupdate is failing to upgrade rooter package. Error: Package name '.*.rooter' does not match any packages in the profile.

rooter selfupdate
warning: Package name '.*.rooter' does not match any packages in the profile.
warning: No packages to upgrade. Use 'nix profile list' to see the current profile.

my nix profile list

nix profile list
Name:               devenv
Flake attribute:    legacyPackages.aarch64-darwin.devenv
Original flake URL: flake:nixpkgs
Locked flake URL:   github:NixOS/nixpkgs/c8a17040be4a20b29589cb4043a9e0c36af1930e?narHash=sha256-7NBJm1jfMeAowE1J2oljYqWVvI9X7FyyxBY4O8uB/Os%3D
Store paths:        /nix/store/b3qrqdgy7zkl5wz8mcgqpxnyid7ldvv2-devenv-1.3

Name:               direnv
Flake attribute:    legacyPackages.aarch64-darwin.direnv
Original flake URL: flake:nixpkgs
Locked flake URL:   github:NixOS/nixpkgs/e2f08f4d8b3ecb5cf5c9fd9cb2d53bb3c71807da?narHash=sha256-CAZF2NRuHmqTtRTNAruWpHA43Gg2UvuCNEIzabP0l6M%3D
Store paths:        /nix/store/86zx2b7bd57p8wjaw4vz313vfyx8883q-direnv-2.34.0

Name:               nix-direnv
Flake attribute:    legacyPackages.aarch64-darwin.nix-direnv
Original flake URL: flake:nixpkgs
Locked flake URL:   github:NixOS/nixpkgs/e2f08f4d8b3ecb5cf5c9fd9cb2d53bb3c71807da?narHash=sha256-CAZF2NRuHmqTtRTNAruWpHA43Gg2UvuCNEIzabP0l6M%3D
Store paths:        /nix/store/fp00nk0xyj8nr964c81gcl39xc38j3jj-nix-direnv-3.0.6

Name:               rooter
Flake attribute:    packages.aarch64-darwin.rooter
Original flake URL: github:run-as-root/rooter/main
Locked flake URL:   github:run-as-root/rooter/54cab22c6212e35ca97c5dea06ca3c8250db62e5?narHash=sha256-I0ENwIAhFv8sohMJULxAl7P5x%2BAh4gmrjTD0EZgw4iM%3D
Store paths:        /nix/store/2wsyiagin86g824p8h8560kcbkhqnl16-rooter

I've done successful upgrade to rooter 1.0.0-beta8 with nix nix profile upgrade rooter

nix profile upgrade rooter
rooter -V
rooter 1.0.0-beta8
mwr commented 1 month ago

Thanks for reporting this @MPietrukowski

Based on #12 I assume you have nix 2.24.
Starting with nix 2.20 the profile command was changed. Up until now we have treated this as unstable. But it is now safe to assume it will stay this way 😅

The commit 326b8926cdaceecbbce444df98952d5f3f2632cf should fix this.

However the next update still has to be installed using nix profile upgrade rooter in your case.