dbuenzli / topkg

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

multi-packages release? #73

Closed samoht closed 7 years ago

samoht commented 7 years ago

What is the expected workflow for multi-packages release? I am struggling a little bit at the moment to understand how this should work.

$ topkg opam pkg --dist-name datakit-client --dist-file _build/datakit-0.6.0.tbz
Wrote OPAM package _build/datakit.0.6.0

Also, it's all very verbose, what I really dream is something like topkg tag && topkg bistro --pkgs foo,bar,baz or even topkg tag && topkg bistro --all-pkgs

samoht commented 7 years ago

Ha actually it seems to be a bug in topkg opam pkg --dist-name <foo>:

$ topkg distrib --dist-name datakit-client
Cloning into '_build/datakit-client-0.6.0.build'...
done.
Wrote archive _build/datakit-client-0.6.0.tbz
[...]
Distribution for datakit-client 0.6.0
Commit b450d04b682c2acb866048971eed51785c6ff966
Archive _build/datakit-client-0.6.0.tbz
$ topkg opam pkg --dist-name datakit-client
Wrote OPAM package _build/datakit.0.6.0
samoht commented 7 years ago

Not sure why I was so confused, but using the -n <name> option worked much better.

dbuenzli commented 7 years ago

Just for the record the release process for multi-package for a single tarball is described in the documentation here. (Including the actual commands that need to be issued).