Skip to content

Commit

Permalink
chore: change the apisix rockspec file path (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyDluffy6017 authored Dec 5, 2023
1 parent 74052cd commit d2ce2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/install-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ install_apisix() {
# patch rockspec file to install with local repo
sed -re '/^\s*source\s*=\s*\{$/{:src;n;s/^(\s*url\s*=).*$/\1".\/apisix",/;/\}/!bsrc}' \
-e '/^\s*source\s*=\s*\{$/{:src;n;/^(\s*branch\s*=).*$/d;/\}/!bsrc}' \
-i rockspec/apisix-master-${iteration}.rockspec
-i apisix-master-${iteration}.rockspec

# install rust
install_rust

# build the lib and specify the storage path of the package installed
luarocks make ./rockspec/apisix-master-${iteration}.rockspec --tree=/tmp/build/output/apisix/usr/local/apisix/deps --local
luarocks make ./apisix-master-${iteration}.rockspec --tree=/tmp/build/output/apisix/usr/local/apisix/deps --local
chown -R "$(whoami)":"$(whoami)" /tmp/build/output
cd ..
# copy the compiled files to the package install directory
Expand Down

0 comments on commit d2ce2b8

Please sign in to comment.