Where do I find the build script of OPM packages?
Hey,
I am trying to build a newer version of https://opm.openresty.org/package/ledgetech/lua-resty-http/ and do not know where the pod file comes from and if it is needed. Also the version of 0.12 is a bit on the older side that is being installed with OPM.
Where do I find the build stuff for OPM packages? I know where the source code is of the package but couldn't see any OPM relevant stuff.
https://opm.openresty.org/docs
Install opm using the following cmd:
sudo apt-get insall openresty-opm
suod yum install openresty-opm
@zhuizhuhaomeng I am sorry that I have to answer a rather negative question:
Did you read my question?
I'll try to be more thorough:
The source of https://opm.openresty.org/package/pintsized/lua-resty-http/ is here: https://github.com/ledgetech/lua-resty-http
When I download the OPM package I get also a pod file and some meta information, so the OPM package must be built somewhere with some instruction set as it is not the same as just the content of the source repo. Can I find those instructions online somewhere from which OPM packages are built?
I have posted the doc link above. I will post it again: https://opm.openresty.org/docs. The main command to release a package is:
cd /path/to/lua-resty-foo/
opm build
# optional:
# cd lua-resty-foo-VERSION/ && opm server-build
# you may need to edit the ~/.opmrc file to set up your github
# personal access tokens. the first run of "opm upload" will create
# a boilerplate ~/.opmrc file for you.
opm upload
# cleaning up the leftovers of the opm build command.
opm clean dist