I am using dune-release 1.4.0. I have a repository from which I release 3 packages. I am on a branch, with a tag that I prepared previously (without the help of dune-release):
> git describe
v0.3.1
I have the .opam files for my 3 packages in the current directory (plus a dummy .opam file for my dev deps):
> ls *.opam
np.opam requirements_dev.opam scipy.opam sklearn.opam
However dune-release cannot find any of my packages:
> dune-release distrib
[-] Building source archive
dune-release: [ERROR] cannot determine name automatically: use `-p <name>`
> dune-release distrib -p np
[-] Building source archive
dune-release: [ERROR] cannot determine name automatically: use `-p <name>`
> dune-release distrib -p np,scipy,sklearn
[-] Building source archive
dune-release: [ERROR] cannot determine name automatically: use `-p <name>`
The documentation for -p
says:
The names PKG_NAMES of the opam packages to release. If absent
provided by the *.opam files present in the current directory.
(Looking at strace, it looks like dune-release it not reading any of my .opam files. Rather it reads my README.md, picks up the main title, adds .opam at the end and tries to open that.)
What am I doing wrong?
One can see the branch I am trying to release from here: https://github.com/lehy/ocaml-sklearn/tree/0.3.1