giltene / wrk2

A constant throughput, correct latency recording variant of wrk
Apache License 2.0
4.23k stars 381 forks source link

How to import hmac to lua script? #126

Open yukha-dw opened 2 years ago

yukha-dw commented 2 years ago

Hello, is there any way to install and import lua modules?

I want to import hmac module inside lua script so I can create a new signature for every request, but i got this error instead

./script.lua: ./extension.lua:1: module 'hmac' not found:
        no field package.preload['hmac']
        no file './hmac.lua'
        no file '/usr/local/share/luajit-2.0.3/hmac.lua'
        no file '/usr/local/share/lua/5.1/hmac.lua'
        no file '/usr/local/share/lua/5.1/hmac/init.lua'
        no file './hmac.so'
        no file '/usr/local/lib/lua/5.1/hmac.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'