Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kposborne opened this issue Jan 20, 2021 · 2 comments

Comments

@kposborne
Copy link

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
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants