Skip to content

Commit 6293082

Browse files
committed
Fix #3624
Dune should insert the name of the extension to the dune-project file. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
1 parent 234c38e commit 6293082

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ next
4646
- Use `{dev}` rather than `{pinned}` in the generated `.opam` file. (#3647,
4747
@kit-ty-kate)
4848

49+
- Insert correct extension name when editing `dune-project` files. Previously,
50+
dune would just insert the stanza name. (#3649, fixes #3624, @rgrinberg)
51+
4952
2.6.1 (02/07/2020)
5053
------------------
5154

src/dune/dune_project.ml

+2-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ module Extension = struct
433433
( Project_file_edit.append project_file
434434
(List
435435
[ Dune_lang.atom "using"
436-
; Dune_lang.atom name
436+
; Dune_lang.atom
437+
(Dune_lang.Syntax.name e.syntax)
437438
; Dune_lang.atom
438439
(Dune_lang.Syntax.Version.to_string
439440
version)

test/blackbox-tests/test-cases/coq/github3624.t/run.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ In github #3624, dune created a dune-project with an incorrect using line.
55
> (name foo))
66
> EOF
77
$ dune build 2>&1 | grep using
8-
Info: Appending this line to dune-project: (using coq.theory 0.2)
8+
Info: Appending this line to dune-project: (using coq 0.2)

0 commit comments

Comments
 (0)