openresty / opm

OpenResty Package Manager
https://opm.openresty.org/
460 stars 75 forks source link

Newly published packages not available ("Pending") #70

Closed GUI closed 5 years ago

GUI commented 5 years ago

I just tried publishing a new OPM package, but it looks like new packages aren't being processed. All the packages since 2019-02-20 listed on https://opm.openresty.org are listed as "Pending" and are missing descriptions. I'm unable to install any of these new packages listed as pending.

When I ran the opm upload this was the output I received:

File lua-resty-mail-1.0.2.tar.gz has been successfully uploaded and will be processed by the server shortly.
The uploaded task ID is 551.

If I try to explicitly install that new version of the package, it doesn't appear to be available yet:

* Fetching GUI/lua-resty-mail = 1.0.2
ERROR: failed to find package GUI/lua-resty-mail = 1.0.2: package lua-resty-mail = 1.0.2 not found under account GUI.

Thanks for providing OPM and looking into this!

agentzh commented 5 years ago

@GUI Thanks for the report! It was indeed a bug in the md2pod.pl script in resty-cli which caused an infinite loop on empty .md files (the lua-resty-rpm package ships with an empty README.md file). Should be fine now:

http://opm.openresty.org/

Alas. lua-resty-rpm package now fails. And @toruneko needs to re-upload a new version for it.

toruneko commented 5 years ago

I want to make opm like npm or yarn, which use package.json like

{
  "license": "MIT",
  "version": "1.0.0",
  "dependencies": {
    "toruneko\/lua-resty-influx": "=0.0.4",
    "toruneko\/lua-resty-upstream": "=0.0.5",
    "openresty\/lua-resty-dns": "=0.21"
  },
  "name": "myproject",
  "author": "toruneko"
}

and use rpm(Resty Package M..) install to download the dependencies into my project.

.
├── lualib
│   ├── ngx
│   │   ├── balancer.lua
│   │   ├── base64.lua
│   │   ├── errlog.lua
│   │   ├── ocsp.lua
│   │   ├── process.lua
│   │   ├── re.lua
│   │   ├── resp.lua
│   │   ├── semaphore.lua
│   │   ├── ssl
│   │   │   └── session.lua
│   │   └── ssl.lua
│   └── resty
│       ├── core
│       │   ├── base.lua
│       │   ├── base64.lua
│       │   ├── ctx.lua
│       │   ├── exit.lua
│       │   ├── hash.lua
│       │   ├── misc.lua
│       │   ├── phase.lua
│       │   ├── regex.lua
│       │   ├── request.lua
│       │   ├── response.lua
│       │   ├── shdict.lua
│       │   ├── time.lua
│       │   ├── uri.lua
│       │   ├── var.lua
│       │   └── worker.lua
│       ├── core.lua
│       ├── dns
│       │   └── resolver.lua
│       ├── http.lua
│       ├── http_headers.lua
│       ├── influx
│       │   ├── db
│       │   │   ├── client.lua
│       │   │   ├── point.lua
│       │   │   └── reporter.lua
│       │   ├── measurement.lua
│       │   ├── metrics
│       │   │   ├── averager.lua
│       │   │   ├── counter.lua
│       │   │   ├── histogram
│       │   │   │   ├── reservoir.lua
│       │   │   │   └── snapshot.lua
│       │   │   ├── histogram.lua
│       │   │   ├── timer
│       │   │   │   └── context.lua
│       │   │   └── timer.lua
│       │   ├── registry.lua
│       │   └── util
│       │       ├── clock.lua
│       │       └── skiplist.lua
│       ├── iputils.lua
│       ├── lrucache
│       │   └── pureffi.lua
│       ├── lrucache.lua
│       ├── upstream
│       │   ├── balancer.lua
│       │   ├── lrucache.lua
│       │   ├── math.lua
│       │   └── monitor.lua
│       └── upstream.lua
├── manifest
│   ├── lua-resty-core.list
│   ├── lua-resty-core.meta
│   ├── lua-resty-dns.list
│   ├── lua-resty-dns.meta
│   ├── lua-resty-http.list
│   ├── lua-resty-http.meta
│   ├── lua-resty-influx.list
│   ├── lua-resty-influx.meta
│   ├── lua-resty-iputils.list
│   ├── lua-resty-iputils.meta
│   ├── lua-resty-lrucache.list
│   ├── lua-resty-lrucache.meta
│   ├── lua-resty-upstream.list
│   └── lua-resty-upstream.meta
├── package.json
├── pod
│   ├── lua-resty-core-0.1.15
│   │   ├── lua-resty-core-0.1.15.pod
│   │   ├── ngx.balancer.pod
│   │   ├── ngx.base64.pod
│   │   ├── ngx.errlog.pod
│   │   ├── ngx.ocsp.pod
│   │   ├── ngx.process.pod
│   │   ├── ngx.re.pod
│   │   ├── ngx.resp.pod
│   │   ├── ngx.semaphore.pod
│   │   ├── ngx.ssl.pod
│   │   └── ngx.ssl.session.pod
│   ├── lua-resty-dns-0.21
│   │   └── lua-resty-dns-0.21.pod
│   ├── lua-resty-http-0.12
│   │   └── lua-resty-http-0.12.pod
│   ├── lua-resty-influx-0.0.4
│   │   └── lua-resty-influx-0.0.4.pod
│   ├── lua-resty-iputils-0.3.0
│   │   └── lua-resty-iputils-0.3.0.pod
│   ├── lua-resty-lrucache-0.08
│   │   └── lua-resty-lrucache-0.08.pod
│   └── lua-resty-upstream-0.0.5
│       ├── lua-resty-upstream-0.0.5.pod
│       ├── resty.upstream.balancer.pod
│       └── resty.upstream.monitor.pod
├── resty.index
├── rpm.lua

Do you have some suggestion for rpm? Or does opm support --cwd install to install dependencies from dist.ini?

agentzh commented 5 years ago

@toruneko Please do not hijack unrelated issues like this one to ask new questions. Thanks for your cooperation.

Regarding to your question, yes, you just need to use --cwd for it.