Open kminder opened 3 years ago
So I compared against https://github.com/jkeys089/lua-resty-hmac/blob/master/Makefile and it looks to be that straightforward but I can add a PR to test the make in the workflow for builds.
Relevant files:
Feel free to attempt a PR to do the same if you don't want to wait on me!
Do you have a link to your sample Dockerfile to test?
Maybe a minimal sample repo?
Are you missing the LUA_VERSION
perhaps in the install -d
path?
Ah, looks like you need the module add:
https://github.com/jkeys089/lua-resty-hmac/blob/master/Makefile#L16
Unless I'm misunderstanding, the "missing"
$(INSTALL) resty_modules/lualib/resty/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty
seems unlikely to be related. I note that the repo https://github.com/jkeys089/lua-resty-hmac
has no such resty_modules
nor does https://github.com/jkeys089/lua-resty-hmac/archive/refs/tags/v0.05.tar.gz
. Furthermore none of the other lua-resty-* modules I checked included this step. For example...
https://github.com/openresty/lua-resty-string/blob/master/Makefile#L12
https://github.com/ledgetech/lua-resty-http/blob/master/Makefile#L19
This may be something to unique 0.2.3. I reverted to 0.2.2 and I'm not hitting the same issue.
Any chance this would be added soon?
Also would like this as I am in the same situation with the ingress-nginx not supporting luarocks
I'm trying to add lua-resty-jwt to Kubernetes ingress-nginx. In their recent versions they have stopped using luarocks and are installing Lua modules manually. See https://github.com/kubernetes/ingress-nginx/blob/master/images/nginx/rootfs/build.sh#L597 I've tried installing both lua-resty-jwt and lua-resty-hmac as shown below but it isn't working.
When the /etc/nginx/conf.lua lines below execute...
I get this error...
So are there any suggested instructions for installing lua-resty-jwt manually without luarocks?