cdbattags / lua-resty-jwt

JWT For The Great Openresty
Apache License 2.0
146 stars 44 forks source link

luarocks install failing with "unrecognized filename extension" in recent 0.2.3-0 release #48

Open kposborne opened 3 years ago

kposborne commented 3 years ago

When I build the following in Docker:

FROM openresty/openresty:1.19.3.1-2-alpine-fat AS build

RUN apk --no-cache add openssl \
    && /usr/local/openresty/luajit/bin/luarocks install lua-resty-jwt

I get this error:

 > [2/2] RUN apk --no-cache add openssl     && /usr/local/openresty/luajit/bin/luarocks install lua-resty-jwt:
#5 0.252 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
#5 0.374 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
#5 0.517 (1/1) Installing openssl (1.1.1i-r0)
#5 0.534 Executing busybox-1.31.1-r19.trigger
#5 0.541 OK: 261 MiB in 62 packages
#5 0.822 Installing https://luarocks.org/lua-resty-jwt-0.2.3-0.src.rock
#5 0.967
#5 0.967 Error: Couldn't extract archive /tmp/luarocks_lua-resty-jwt-0.2.3-0-BmiCCJ/.: unrecognized filename extension

When I pin the version to the previous release:

FROM openresty/openresty:1.19.3.1-2-alpine-fat AS build

RUN apk --no-cache add openssl \
    && /usr/local/openresty/luajit/bin/luarocks install lua-resty-jwt 0.2.2-0

it succeeds

chrisFrodo commented 3 years ago

When looking at .rockspec files and comparing 0.2.2 and 0.2.3, the error seems to be :

source = {
  url = 'file://.'
}

It should be :

source = {
  url = 'git://github.com/cdbattags/lua-resty-jwt',
  tag = 'v0.2.3'
}
cdbattags commented 3 years ago

Should be fixed for latest release! Sorry for the hiccup.