api7 / apisix-build-tools

Build tools to package and release
Apache License 2.0
125 stars 96 forks source link

refactor: remove logic of checking lua-resty-limit-traffic #374

Open zll600 opened 9 months ago

zll600 commented 9 months ago

Now the build-apisix-runtime.sh will report an error if lua-resty-limit-traffic does not exist. https://github.com/api7/apisix-build-tools/blob/6f1a40412fe94eca71286f0a0a91e26dd36b6c6a/build-apisix-runtime.sh#L149-L158

we can just keep the content of else branch and remove this check. looks like

rm -rf bundle/lua-resty-limit-traffic-$or_limit_ver
limit_ver=1.0.0
wget "https://github.com/api7/lua-resty-limit-traffic/archive/refs/tags/v$limit_ver.tar.gz" -O "lua-resty-limit-traffic-$limit_ver.tar.gz"
tar -xzf lua-resty-limit-traffic-$limit_ver.tar.gz
mv lua-resty-limit-traffic-$limit_ver bundle/lua-resty-limit-traffic-$or_limit_ver