crazyMonkey1995 opened a new issue #6560:
URL: https://github.com/apache/apisix/issues/6560
### Issue description
When build with apisix-build-tools, erro occur:
```
+ mkdir -p /tmp/build/output/apisix/usr/bin/
+ cd /apisix
+ sed -i 's/url.*/url = ".\/apisix",/' rockspec/apisix-master-0.rockspec
+ sed -i 's/branch.*//' rockspec/apisix-master-0.rockspec
+ luarocks make ./rockspec/apisix-master-0.rockspec
--tree=/tmp/build/output/apisix/usr/local/apisix/deps --local
Error: Could not load rockspec file
/apisix/./rockspec/apisix-master-0.rockspec (Error loading file: [string
"/apisix/./rockspec/apisix-master-0.rockspec"]:77: '}' expected (to close '{'
at line 33) near '.')
The command '/bin/sh -c /install-common.sh install_apisix &&
/determine-dist.sh' returned a non-zero code: 1
make: *** [build-apisix-rpm] Error 1
```
I debug it and found that the reason is: sed -i 's/url.*/url =
".\/apisix",/' rockspec/apisix-master-0.rockspec
It change the dependencies unexpectedly:

### Environment
- apisix version (cmd: `apisix version`): latest(master)
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd:
depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `luarocks
--version`):
### Steps to reproduce
build with apisix-build-tools
### Actual result
error occur
### Error log
+ mkdir -p /tmp/build/output/apisix/usr/bin/
+ cd /apisix
+ sed -i 's/url.*/url = ".\/apisix",/' rockspec/apisix-master-0.rockspec
+ sed -i 's/branch.*//' rockspec/apisix-master-0.rockspec
+ luarocks make ./rockspec/apisix-master-0.rockspec
--tree=/tmp/build/output/apisix/usr/local/apisix/deps --local
Error: Could not load rockspec file
/apisix/./rockspec/apisix-master-0.rockspec (Error loading file: [string
"/apisix/./rockspec/apisix-master-0.rockspec"]:77: '}' expected (to close '{'
at line 33) near '.')
The command '/bin/sh -c /install-common.sh install_apisix &&
/determine-dist.sh' returned a non-zero code: 1
make: *** [build-apisix-rpm] Error 1
### Expected result
build success
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]