Skip to content

dune subst silently ignores %%ID%% string when outside a git-controlled directory #10927

@btjorge

Description

@btjorge

Note this impact file-pinned opam packages in particular

Reproduction

$ mkdir test

$ cat > dune-project << EOF
(lang dune 3.16)
(name test)
EOF

$ echo "%%NAME%%" > README.md

Expected Behavior

$ dune subst
$ cat README.md
test

Actual Behavior

$ dune subst
$ cat README.md
%%NAME%%

Specifications

  • dune 3.16.0
  • ocaml 5.2
  • debian 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions