jsdelivr / globalping-cli

A simple CLI tool to run networking commands remotely from hundreds of globally distributed servers
Mozilla Public License 2.0
129 stars 14 forks source link

Incorrect packaging of .rpm #48

Closed perosb closed 1 year ago

perosb commented 1 year ago

After installing version 1.0.0 (I haven't tested any other version) the globalping command cannot be found.

drwxr-xr-x.  15 root root    4096 15 nov 15.55  usr
-rwxr-xr-x.   1 root root 8355840 11 apr 19.40 '\usr\bin\globalping'
drwxr-xr-x.  21 root root    4096 15 nov 16.02  var
/tmp$ rpm -qlp ./globalping-1.0.0-1.x86_64.rpm 
\usr\bin\globalping
jimaek commented 1 year ago

How did you install it? Using the RPM script? And what OS are you using?

perosb commented 1 year ago

Was just about to update with those details ;)

I used the commands from README https://github.com/jsdelivr/globalping-cli#centosfedorarocky-linuxalmalinux-rpm

I also downloaded the package manually for f37 and verified with "rpm -qlp" which lists the files in the package and only \usr\bin\globalping is in there. wget --content-disposition "https://packagecloud.io/jsdelivr/globalping/packages/fedora/37/globalping-1.0.0-1.x86_64.rpm/download.rpm?distro_version_id=260"

jimaek commented 1 year ago

Looks like incorrect encoding of the path, try this command:

mv '\usr\bin\globalping' /usr/bin/globalping

It should fix it and I'll look into why its happening

perosb commented 1 year ago

0.4.0 seems to be correct https://packagecloud.io/jsdelivr/globalping/packages/fedora/37/globalping-0.4.0-1.x86_64.rpm?distro_version_id=260

Also .deb are fine.

jimaek commented 1 year ago

Probably windows related since its using the windows slashes. But I dont know why it suddenly broke with this version, needs research.

jimaek commented 1 year ago

Looks like goreleaser 1.17 is broken. I downgraded and everything seems normal now. Check the 1.0.1 release please. Both the script and manual binaries should be working. Sorry for this bad experience and let me know if you find anything else that we could improve