I’m trying to find out how to publish an opam package.
I have found these two links, which give contradictory information (or, at least, not easy to reconcile)
I assume the last one is a bit old. But the information on the first one is quite scarse.
Is there somewhere an up-to-date tutorial for this?
Here is my situation:
- freshly installed ubuntu 18.04 (KDE neon, in fact) with system ocaml 4.05.0, installed opam 2, upgraded it, installed dune.
- my project uses dune, which autogenerates the .opam file. I have no problem installing a local opam package with
opam install .
- my project is hosted on github (sanette/bogue)
- I tried
opam publishfrom my source dir. First time, I got an authorization error. The next day, this authorization error disappeared. I assumed it is related to some ssh/token authorization from github. Not sure. But now, I cannot go past the second error which is
$ opam publish
The following will be published:
- bogue version 1907 with opam file at /home/san/prog/ocaml/bogue/github/bogue/bogue.opam
[WARNING] These will be virtual packages: bogue.1907
Continue ? You will be shown the patch before submitting. [Y/n] y Fetching the package repository, this may take a while... [ERROR] Uncaught exception: "/usr/bin/git fetch --multiple origin user" exited with code 128
Any help welcome! Thanks