nix-community / lorri

Your project’s nix-env [maintainer=@Profpatsch,@nyarly]
Apache License 2.0
677 stars 24 forks source link

`lorri self-upgrade` sets inaccurate `lorri` version number 0.1.0? #93

Open peterbecich opened 1 year ago

peterbecich commented 1 year ago

Describe the bug I had lorri 1.5.0 installed. Then, lorri self-upgrade:

replacing old 'lorri-1.5.0'
installing 'lorri'
building '/nix/store/fzai4pbd1a5iyvv98fy3gq78y33c6xif-user-e
Nov 06 22:48:22.192 INFO upgrade successful

Now the version appears to be 0.1.0:

lorri -V                        
lorri 0.1.0

I see this command installs the rolling release:

USAGE:
    lorri self-upgrade [SUBCOMMAND]

...
    rolling-release    Upgrade to the current rolling-release version, will be fetched from git and built locally.
                       rolling-release is expected to be more stable than master. (default)

Has it actually installed a version newer than 1.5.0, but the -V is inaccurate? Has it actually installed a very old version 0.1.0?

The location of lorri 1.5.0 and lorri 0.1.0 is identical. I have verified this by re-installing 1.5.0 with nix-env -iA nixpkgs.lorri. Both versions are located at:

/home/peterbecich/.nix-profile/bin/lorri

To Reproduce Steps to reproduce the behavior:

Repeated lorri self-upgrade re-installs lorri, and the version is always 0.1.0. I doubt it is important to start from lorri 1.5.0.

Expected behavior

After lorri self-upgrade from version 1.5.0, lorri -V would print some version >= 1.5.0

Metadata There is no lorri project to print here. I am only trying to install the latest version of lorri, or verify the latest version is already installed.

$ uname -a
Linux neptune 5.16.0-0.bpo.4-amd64 #1 SMP PREEMPT Debian 5.16.12-1~bpo11+1 (2022-03-08) x86_64 GNU/Linux

Additional context Using Nix on Debian

Thank you