Closed lehy closed 3 years ago
This is intended behaviour since distrib operates on the HEAD commit source tree so any uncomitted changes are ignored. The first step for distrib is to get a clean clone checked out to the right commit.
I agree this can be confusing though. Moving the warning earlier as you did seems like a sensible improvement, I'll also mention it in the documentation.
Setup
We set up a simple repo with two .opam files. We add a name to dune-project but do not commit it.
dune-release tag
works:Problem
dune-release distrib
does not see the uncommitted name. It would be nice if it could complain about it if committing is really necessary, or at least mention that committing is necessary in the error message.Committing the dune-project file with a name makes dune-release distrib work (however the name must be the name of one of the .opam files).