File tree 2 files changed +9
-6
lines changed
test/blackbox-tests/test-cases/dune-project-meta/main.t
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -498,10 +498,12 @@ module Info = struct
498
498
(Dune_lang.Syntax. since Stanza. syntax (v (1 , 9 )) >>> repeat string )
499
499
and + license =
500
500
field_o " license"
501
- (Dune_lang.Syntax. since Stanza. syntax (v (3 , 2 ))
501
+ (Dune_lang.Syntax. since Stanza. syntax (v (1 , 9 ))
502
502
>>> repeat1 string
503
- < |> ( Dune_lang.Syntax. since Stanza. syntax (v (1 , 9 )) >>> string
504
- >> | fun s -> [ s ] ))
503
+ ~check_multi:
504
+ (Dune_lang.Syntax. since ~what: " Parsing several licenses"
505
+ Stanza. syntax
506
+ (v (3 , 2 ))))
505
507
and + homepage =
506
508
field_o " homepage"
507
509
(Dune_lang.Syntax. since Stanza. syntax (v (1 , 10 )) >>> string )
Original file line number Diff line number Diff line change @@ -606,10 +606,11 @@ Reject multiple licences in version [1.9, 3.2)
606
606
> EOF
607
607
608
608
$ dune build
609
- File " dune-project" , line 4 , characters 13 -16 :
609
+ File " dune-project" , line 4 , characters 0 -17 :
610
610
4 | (license MIT ISC)
611
- ^^ ^
612
- Error: Too many argument for license
611
+ ^^^^^^^^^^^^^^^^ ^
612
+ Error: Parsing several licenses is only available since version 3.2 of the
613
+ dune language. Please update your dune-project file to have (lang dune 3.2 ).
613
614
[1 ]
614
615
615
616
Allow multiple licences in version >= 3.2
You can’t perform that action at this time.
0 commit comments