Comments (9)
If you want to get around the require error you can install luabitop from luarocks for your corresponding version of lua.
I now remember why I wrote a wrapper library for this purpose - you actually can't do that. The dependencies of luabitop requires lua >= 5.1, lua < 5.3.
I wrote this a while ago for minimal support. I can rebase it from the latest master and people can specify that in their rockspecs until then.
from pgmoon.
This seems to be related: luarocks/luarocks#526
from pgmoon.
btw, when we do fix this, we need to turn on lua5.3 on ci:
https://github.com/leafo/pgmoon/blob/master/.travis.yml#L14
If you enable it and run ci now you can see why it's currently not working
from pgmoon.
I'm pretty new to Lua, but from my understanding, this line should not contain the word 'require'.
Also, the following line probably needs some small changes since - from what I read - the integrated "bit" library is not a drop in replacement for the external one.
I tried to propose a patch for this today, but I did not found anywhere an example on how to identify the lua version at runtime. I think the clean way to support 5.1, 5.2, and 5.3 would be to identify the version and behave differently based on that
from pgmoon.
Sorry, I left out some information. There are other reasons why specs don't pass on 5.3, it's not a simple change to require
to fix it. If you want to get around the require error you can install luabitop
from luarocks for your corresponding version of lua.
It's listed as a dependency: https://github.com/leafo/pgmoon/blob/master/pgmoon-dev-1.rockspec#L16
I'm guessing you didn't install pgmoon via luarocks?
from pgmoon.
Should pgmoon migrate from luabitop to bit32 now that Lua 5.2+ supports native 32 integers and related ops?
from pgmoon.
https://github.com/AlberTajuelo/bitop-lua looks like a neat library that includes a luabitop compatibility layer
from pgmoon.
I would support a fix for this as well, this blocks Lua 5.3 compatibility e.g. for https://github.com/Kong/kong.
from pgmoon.
Closing old issues. Lua 5.3 support has been available for quite some time now, test suite has been updated to reflect that.
from pgmoon.
Related Issues (20)
- support ipv6 by using luasocket HOT 1
- What should I do if error happens when using pg:query ? HOT 1
- Implement extended query protocol HOT 1
- attempt to call method 'keepalive' (a nil value) HOT 1
- [PostgreSQL 14.1] Why is the connection wrong and the encryption method is scram-sha-256? HOT 2
- It works in neovim!
- unable to read data from frontend HOT 4
- bad request on repeated requests HOT 3
- multi-hosts HOT 1
- pgmoon support automatic master-slave switch HOT 1
- Add locking to query functions HOT 1
- authentication exchange unsuccessful in postgresql 15 scram-sha-256 in scram_sha_256_auth
- lua entry thread aborted: runtime error: attempt to yield across C-call boundary HOT 2
- multiple statements in one query HOT 2
- Support all array types
- postgres:query() does not return error as 2. parameter
- Socket pool getreusedtimes function HOT 1
- Pool violation after v1.13 HOT 2
- Connection pooling outside of OpenResty?
- which pgmoon version can connect to postgresql 15 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgmoon.