Skip to content

Commit

Permalink
feat: update PCRE dependency to lrexlib-pcre2 (#163)
Browse files Browse the repository at this point in the history
* feat: upgrade to lrexlib-pcre2

- update rockspec dependency
- update rockspec template
- rex_pcre2

Fixes #156

* ci: install correct dependencies for PCRE2
  • Loading branch information
mikyll authored Nov 28, 2024
1 parent 7ee85ed commit 17d10b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/luarocks-template.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description = {
dependencies = {
"lua >= 5.1",
"lualogging >= 1.5.1",
"lrexlib-pcre >= 2.9.1",
"lrexlib-pcre2 >= 2.9.2",
"luaposix = 35.1-1"
}
build = {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
do
sleep 1
done
until luarocks install lrexlib-pcre
until luarocks install lrexlib-pcre2
do
sleep 1
done
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Install dependencies
run: |
luarocks install lualogging
luarocks install lrexlib-pcre
luarocks install lrexlib-pcre2
luarocks install luaposix
luarocks install luasocket
luarocks install busted
Expand Down
2 changes: 1 addition & 1 deletion casbin-1.41.1-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ description = {
dependencies = {
"lua >= 5.1",
"lualogging >= 1.5.1",
"lrexlib-pcre >= 2.9.1",
"lrexlib-pcre2 >= 2.9.2",
"luaposix = 35.1-1"
}
build = {
Expand Down
2 changes: 1 addition & 1 deletion src/util/BuiltInFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--See the License for the specific language governing permissions and
--limitations under the License.

local rex = require ("rex_pcre")
local rex = require ("rex_pcre2")
local posix = require("posix.fnmatch")

local BuiltInFunctions = {}
Expand Down

0 comments on commit 17d10b0

Please sign in to comment.