You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ dune-release
[-] Building source archive
File "dune-project", line 4, characters 7-15:
4 | (subst disabled)
^^^^^^^^
Error: 'dune subst' has been disabled in this project. Any use of it is
forbidden.
Hint: If you wish to re-enable it, change to (subst enabled) in the
dune-project file.
dune-release: [ERROR] run ['dune' 'subst']: exited with 1
If subst is disabled, then it's not needed and dune-release should skip this, I think. Removing this line fixed it for me:
In a way I am not even sure that the dune behavior is even correct here; maybe it should just silently do nothing (or print a warning and succeed) since the point of subst disabled is to disable substitution; it doesn't need to break shell commands.
Otherwise we'd need to parse dune-project and see if it is enabled or not; that's kind of annoying as I am not aware of a good way to query dune itself for the information. Or call dune subst and if it fails ignore the failure.
dune-release
fails with:If subst is disabled, then it's not needed and dune-release should skip this, I think. Removing this line fixed it for me:
dune-release/lib/pkg.ml
Line 446 in 80ce7b5
I also tried with
dune-release --dry-run
and that got further, but then crashed with:The text was updated successfully, but these errors were encountered: