dbuenzli / topkg

The transitory OCaml software packager
http://erratique.ch/software/topkg
ISC License
69 stars 25 forks source link

topkg publish distrib fails #124

Closed rgrinberg closed 6 years ago

rgrinberg commented 6 years ago
topkg publish distrib --verbose
topkg: [INFO] topkg v0.9.1 running
pkg.ml: [INFO] topkg v0.9.1, running main
topkg: [INFO] Parsing opam file jbuilder.opam
Counting objects: 1, done.
Writing objects: 100% (1/1), 173 bytes | 173.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://github.com/ocaml/dune.git
 * [new tag]         1.0+beta17 -> 1.0+beta17
toy-github-topkg-delegate: [ERROR] Could not parse id from location header
                                   "Location:
                                   https://api.github.com/repositories/72368050/releases"
topkg: [ERROR] Delegate toy-github-topkg-delegate errored with 2

Is it because of the new line following Location:?

dbuenzli commented 6 years ago

See https://github.com/dbuenzli/topkg/issues/120

dbuenzli commented 6 years ago

(I guess you still have references to the old location in the metadata, updating those should work around).

rgrinberg commented 6 years ago

I see, thanks. By metadata you mean the opam files, right?

dbuenzli commented 6 years ago

Or the pkg.ml file see the doc for uri here to see how distribution uris are derived.