File tree Expand file tree Collapse file tree 5 files changed +17
-5
lines changed Expand file tree Collapse file tree 5 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 24
24
25
25
sudo -E ./ci/linux-install-openresty.sh
26
26
./utils/linux-install-luarocks.sh
27
- sudo -E luarocks install luacheck
27
+ sudo -E luarocks install --only-server https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/daab2726276e3282dc347b89a42a5107c3500567 luacheck
28
28
29
29
- name : Script
30
30
run : |
Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ deps: install-runtime
133
133
$(ENV_LUAROCKS ) config $(ENV_LUAROCKS_FLAG_LOCAL ) variables.OPENSSL_LIBDIR $(addprefix $(ENV_OPENSSL_PREFIX ) , /lib) ; \
134
134
$(ENV_LUAROCKS ) config $(ENV_LUAROCKS_FLAG_LOCAL ) variables.OPENSSL_INCDIR $(addprefix $(ENV_OPENSSL_PREFIX ) , /include) ; \
135
135
$(ENV_LUAROCKS ) config $(ENV_LUAROCKS_FLAG_LOCAL ) variables.YAML_DIR $(ENV_LIBYAML_INSTALL_PREFIX ) ; \
136
- $(ENV_LUAROCKS ) install apisix-master-0.rockspec --tree deps --only-deps $(ENV_LUAROCKS_SERVER_OPT ) ; \
136
+ # --only-server is a temporary fix until https://github.com/luarocks/luarocks/issues/1797 is resolved. \
137
+ # NOTE: This fix is taken from https://github.com/luarocks/luarocks/issues/1797#issuecomment-2927856212 \
138
+ # and no packages after 29th May 2025 can be installed. This is to be removed as soon as the luarocks issue is fixed \
139
+ $(ENV_LUAROCKS ) install --only-server https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/daab2726276e3282dc347b89a42a5107c3500567 apisix-master-0.rockspec --tree deps --only-deps $(ENV_LUAROCKS_SERVER_OPT ) ; \
137
140
else \
138
141
$(call func_echo_warn_status, "WARNING: You're not using LuaRocks 3.x; please remove the luarocks and reinstall it via https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh") ; \
139
142
exit 1; \
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ build() {
25
25
apt-get -y update --fix-missing
26
26
apt-get -y install lua5.1 liblua5.1-0-dev
27
27
curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash -
28
- luarocks install ldoc
28
+ # --only-server is a temporary fix until https://github.com/luarocks/luarocks/issues/1797 is resolved. \
29
+ # NOTE: This fix is taken from https://github.com/luarocks/luarocks/issues/1797#issuecomment-2927856212 \
30
+ # and no packages after 29th May 2025 can be installed. This is to be removed as soon as the luarocks issue is fixed \
31
+ luarocks install --only-server https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/daab2726276e3282dc347b89a42a5107c3500567 ldoc
29
32
30
33
# generate docs
31
34
rm -rf autodocs/output || true
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ create_lua_deps() {
35
35
make deps
36
36
37
37
# just for jwt-auth test
38
- luarocks install lua-resty-openssl --tree deps
38
+ # --only-server is a temporary fix until https://github.com/luarocks/luarocks/issues/1797 is resolved. \
39
+ # NOTE: This fix is taken from https://github.com/luarocks/luarocks/issues/1797#issuecomment-2927856212 \
40
+ # and no packages after 29th May 2025 can be installed. This is to be removed as soon as the luarocks issue is fixed \
41
+ luarocks install --only-server https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/daab2726276e3282dc347b89a42a5107c3500567 lua-resty-openssl --tree deps
39
42
40
43
# maybe reopen this feature later
41
44
# luarocks install luacov-coveralls --tree=deps --local > build.log 2>&1 || (cat build.log && exit 1)
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ script() {
36
36
sudo rm -rf /usr/local/share/lua/5.1/apisix
37
37
38
38
# install APISIX with local version
39
- luarocks install apisix-master-0.rockspec --only-deps > build.log 2>&1 || (cat build.log && exit 1)
39
+ # --only-server is a temporary fix until https://github.com/luarocks/luarocks/issues/1797 is resolved. \
40
+ # NOTE: This fix is taken from https://github.com/luarocks/luarocks/issues/1797#issuecomment-2927856212 \
41
+ # and no packages after 29th May 2025 can be installed. This is to be removed as soon as the luarocks issue is fixed \
42
+ luarocks install --only-server https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/daab2726276e3282dc347b89a42a5107c3500567 apisix-master-0.rockspec --only-deps > build.log 2>&1 || (cat build.log && exit 1)
40
43
luarocks make apisix-master-0.rockspec > build.log 2>&1 || (cat build.log && exit 1)
41
44
# ensure all files under apisix is installed
42
45
diff -rq apisix /usr/local/share/lua/5.1/apisix
You can’t perform that action at this time.
0 commit comments