lunarmodules / busted

Elegant Lua unit testing.
https://lunarmodules.github.io/busted/
MIT License
1.39k stars 184 forks source link

Unable to install from LuaRocks #680

Closed brenobaptista closed 2 years ago

brenobaptista commented 2 years ago

I just installed LuaRocks on Pop_OS! using APT and when I try to run sudo luarocks install busted I get the following message:

Installing https://luarocks.org/busted-2.0.0-1.rockspec

Error: Error fetching file: Failed downloading https://github.com/Olivine-Labs/busted/archive/v2.0.0.tar.gz - HTTP/1.1 403 Forbidden

Then I tried to clone the repo and install it using sudo luarocks make but some dependencies can't be installed for the same reason:

Installing https://luarocks.org/say-1.3-1.rockspec

Error: Failed installing dependency: https://luarocks.org/say-1.3-1.rockspec - Error fetching file: Failed downloading https://github.com/Olivine-Labs/say/archive/v1.3-1.tar.gz - HTTP/1.1 403 Forbidden

My guess is that the URL for the releases on GitHub changed but the rockspec file wasn't updated for the Olivine-Labs projects.

brenobaptista commented 2 years ago

As mentioned in this issue #602, I also tried to run other versions like sudo luarocks install busted 2.0.rc13-0

Error: Error fetching file: Failed downloading https://github.com/Olivine-Labs/busted/archive/v2.0.rc13-0.tar.gz - HTTP/1.1 403 Forbidden
brenobaptista commented 2 years ago

I just solved the problem by installing Lua (and LuaRocks) using asdf in the latest version instead of using the package in apt. Then I was able to run luarocks install busted successfully.

Tieske commented 2 years ago

@brenobaptista thx for reporting back your solution!