lunarmodules / luassert

Assertion library for Lua
MIT License
202 stars 76 forks source link

Can't upgrade luassert via luarocks #178

Closed ffeast closed 3 years ago

ffeast commented 3 years ago

Hi

% luarocks install luassert 
Installing https://luarocks.org/luassert-1.8.0-0.rockspec

Error: Could not move /usr/local/share/lua/5.3/luassert/compatibility.lua to /usr/local/share/lua/5.3/luassert_1_7_11_0-luassert/compatibility.lua: /usr/local/share/lua/5.3/luassert/compatibility.lua not found

 % luarocks --version
/usr/local/bin/luarocks 3.0.

% uname -a
Darwin MacBook-Air-Oleg.local 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan  9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64

How to fix it? Thanks

Tieske commented 3 years ago

that seems more like a luarocks issue than luassert.

Tieske commented 3 years ago

hmmm, that's luarocks 3.0, that's very old. I'd suggest upgrading LuaRocks first, current version is 3.7 iirc

ffeast commented 3 years ago

yes you're right. All is fine for a newer version of luarocks, resolving