nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

[Bug]: The 0.1.5 package version reports 0.1.4 #46

Open fredizzimo opened 2 years ago

fredizzimo commented 2 years ago

Describe the bug

EDIT: As explained in the mesasge below, most of the information reported here was my fault, only the displayed version reports wrong wrong

The v0.1.5 package seems to be the same as 0.1.4.

Steps to reproduce

❯ wget https://github.com/nullpo-head/wsl-distrod/releases/download/v0.1.5/opt_distrod.tar.gz && tar -xf opt_distrod.t
ar.gz && bin/distrod --version && sha512sum opt_distrod.tar.gz
--2022-03-10 17:54:46--  https://github.com/nullpo-head/wsl-distrod/releases/download/v0.1.5/opt_distrod.tar.gz
SSL_INIT
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/369828607/cce6132e-a945-4c45-96
09-78e92ab1cec9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220310%2Fus-east-1%2Fs3%2Fa
ws4_request&X-Amz-Date=20220310T155444Z&X-Amz-Expires=300&X-Amz-Signature=e7fc5deb53d77bd1f3a2acf0554da1eef91ea2350d92
740aeaef359300877ed9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=369828607&response-content-disposition=attac
hment%3B%20filename%3Dopt_distrod.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-03-10 17:54:47--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/369828607/cce613
2e-a945-4c45-9609-78e92ab1cec9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220310%2Fus-
east-1%2Fs3%2Faws4_request&X-Amz-Date=20220310T155444Z&X-Amz-Expires=300&X-Amz-Signature=e7fc5deb53d77bd1f3a2acf0554da
1eef91ea2350d92740aeaef359300877ed9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=369828607&response-content-di
sposition=attachment%3B%20filename%3Dopt_distrod.tar.gz&response-content-type=application%2Foctet-stream
SSL_INIT
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.1
10.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12240213 (12M) [application/octet-stream]
Saving to: ‘opt_distrod.tar.gz’

opt_distrod.tar.gz            100%[===============================================>]  11.67M  9.50MB/s    in 1.2s

2022-03-10 17:54:48 (9.50 MB/s) - ‘opt_distrod.tar.gz’ saved [12240213/12240213]

distrod 0.1.4
d6ba0e84439bbf4e3457e082ab9f5900709aa2d70ecfe79cd6ae870dcd3693a992e717c5af973f858ca7f1b3318dbdca831130c009c9b76f940ac7
40279016d3  opt_distrod.tar.gz

❯ wget https://github.com/nullpo-head/wsl-distrod/releases/download/v0.1.4/opt_distrod.tar.gz && tar -xf opt_distrod.t
ar.gz && bin/distrod --version && sha512sum opt_distrod.tar.gz
--2022-03-10 17:54:57--  https://github.com/nullpo-head/wsl-distrod/releases/download/v0.1.4/opt_distrod.tar.gz
SSL_INIT
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/369828607/0cd15a83-96ad-4ddd-91
00-74c0e686a92e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220310%2Fus-east-1%2Fs3%2Fa
ws4_request&X-Amz-Date=20220310T155455Z&X-Amz-Expires=300&X-Amz-Signature=1d4506ce64c72b176df7eefecec07b76c2f35fb19e67
b5a7a4da31b3138ec63e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=369828607&response-content-disposition=attac
hment%3B%20filename%3Dopt_distrod.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-03-10 17:54:58--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/369828607/0cd15a
83-96ad-4ddd-9100-74c0e686a92e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220310%2Fus-
east-1%2Fs3%2Faws4_request&X-Amz-Date=20220310T155455Z&X-Amz-Expires=300&X-Amz-Signature=1d4506ce64c72b176df7eefecec07
b76c2f35fb19e67b5a7a4da31b3138ec63e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=369828607&response-content-di
sposition=attachment%3B%20filename%3Dopt_distrod.tar.gz&response-content-type=application%2Foctet-stream
SSL_INIT
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.1
10.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12218965 (12M) [application/octet-stream]
Saving to: ‘opt_distrod.tar.gz.1’

opt_distrod.tar.gz.1          100%[===============================================>]  11.65M  43.3MB/s    in 0.3s

2022-03-10 17:54:59 (43.3 MB/s) - ‘opt_distrod.tar.gz.1’ saved [12218965/12218965]

distrod 0.1.4
d6ba0e84439bbf4e3457e082ab9f5900709aa2d70ecfe79cd6ae870dcd3693a992e717c5af973f858ca7f1b3318dbdca831130c009c9b76f940ac7
40279016d3  opt_distrod.tar.gz

Expected behavior

I expect the 0.1.5 package to be different than the 0.1.4 one and report a different version and sha512 hash.

Windows version

22000.493

Linux kernel version

5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 GNU/Linux

Distro

Arch Linux

How did you install that distro?

Installed by Distrod wizard

Logs

No logs, since I don't even need to install distrod to see the problem

additional comment

No response

fredizzimo commented 2 years ago

Sorry, I forgot to delete the file before downloading the 0.1.4 version, the SHA hashes are different 72efba5c011b28b50035a4dd2b418e837b2142d93d23346c5126f4537c7d8f6ba399fc804535625fe96fefd03a4ea379264fd8c6ddd09e8f2ea2982b7b9f42b1 for 0.1.4 and d6ba0e84439bbf4e3457e082ab9f5900709aa2d70ecfe79cd6ae870dcd3693a992e717c5af973f858ca7f1b3318dbdca831130c009c9b76f940ac740279016d3 for 0.1.5

But distrod --version reports 0.1.4 in both cases, so it seems that at least part of the release is not updated.

sarim commented 2 years ago

I tried sudo ./install.sh update, distrod --version still says 0.1.4.

nullpo-head commented 2 years ago

Thanks for reporting. Will fix it soon.