We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a19b5 commit 4e904ddCopy full SHA for 4e904dd
utils/install-common.sh
@@ -89,6 +89,12 @@ is_newer_version() {
89
install_apisix() {
90
mkdir -p /tmp/build/output/apisix/usr/bin/
91
cd /apisix
92
+
93
+ # patch rockspec file to install with local repo
94
+ sed -re '/^\s*source\s*=\s*\{$/{:src;n;s/^(\s*url\s*=).*$/\1".\/apisix",/;/\}/!bsrc}' \
95
+ -e '/^\s*source\s*=\s*\{$/{:src;n;/^(\s*branch\s*=).*$/d;/\}/!bsrc}' \
96
+ -i rockspec/apisix-master-${iteration}.rockspec
97
98
# build the lib and specify the storage path of the package installed
99
luarocks make ./rockspec/apisix-master-${iteration}.rockspec --tree=/tmp/build/output/apisix/usr/local/apisix/deps --local
100
chown -R "$(whoami)":"$(whoami)" /tmp/build/output
0 commit comments