dune-release icon indicating copy to clipboard operation
dune-release copied to clipboard

releasing from a branch results in errors

Open hannesm opened this issue 5 years ago • 3 comments

using dune-release 1.3.3, doing releases on the non-main branch result in an error during dune-release publish

[?] Push tag v0.1.1 to [email protected]:roburio/ocaml-pf.git#just-qubes? [Y/n]

[-] Pushing tag v0.1.1 to [email protected]:roburio/ocaml-pf.git#just-qubes
dune-release: [ERROR] run ['git' '--git-dir' '.git' 'push' '--force'
                           '[email protected]:roburio/ocaml-pf.git#just-qubes'
                      'v0.1.1']: exited with 128

hannesm avatar Dec 07 '20 09:12 hannesm

the reason here is that dev-repo in the opam file points to git+https://github.com/roburio/ocaml-pf.git#just-qubes`

hannesm avatar Dec 07 '20 09:12 hannesm

I have done point releases using dune-release in the past and they worked fine. I think indeed the error is related to the value of dev-repo field. Any particular reason why you need to change it here?

We could ignore the ref here but I'd first like to make sure there a use for that ref somewhere, e.g. that it does impact opam pin or opam source.

NathanReb avatar Dec 09 '20 09:12 NathanReb

well, that package (pf-qubes) is developed on a branch (which is not the main branch) of that repository -- my expectation is that opam pin add pf-qubes --dev works nicely (by using the just-qubes branch).

hannesm avatar Dec 09 '20 09:12 hannesm