Skip to content

'dune subst' has been disabled in this project #496

@talex5

Description

@talex5

dune-release fails with:

$ 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:

Sos.run ~dry_run Cmd.(v "dune" % "subst") >>= fun () ->

I also tried with dune-release --dry-run and that got further, but then crashed with:

-: exec: git --git-dir .git checkout --orphan gh-pages
dune-release: internal error, uncaught exception:
              File "lib/sos.ml", line 35, characters 28-34: Assertion failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions