@@ -49,140 +49,19 @@ the stanza
49
49
$ dune runtest --root local-package
50
50
Entering directory 'local-package'
51
51
52
- Even if the packages is unrelated:
52
+ Dune should not fail if the `packages` are not available at evaluation time
53
+ (regression test fixed by ocaml/dune#3650)
54
+
55
+ $ cd local-package-unrelated && dune build -p unrelated-package; cd ../
56
+
57
+ Dune will fail if the `packages` entries are not avaliable at exeuction time
53
58
54
59
$ cd local-package-unrelated && dune runtest -p unrelated-package; cd ../
55
- Error: exception { exn = ("Map.find_exn: failed to find key", { key = 2; keys
56
- = [ 1 ] })
57
- ; backtrace =
58
- [ { ocaml =
59
- "Raised at file \" src/stdune/code_error.ml\" , line 9, characters
60
- 30-62\n \
61
- Called from file \" src/dune/mdx.ml\" , line 187, characters
62
- 23-61\n \
63
- Called from file \" list.ml\" , line 103, characters 22-25\n \
64
- Called from file \" src/stdune/list.ml\" , line 5, characters
65
- 19-33\n \
66
- Called from file \" src/dune/mdx.ml\" , line 185, characters
67
- 6-196\n \
68
- Called from file \" list.ml\" , line 110, characters 12-15\n \
69
- Called from file \" src/dune/gen_rules.ml\" , line 128, characters
70
- 6-34\n \
71
- Called from file \" src/dune/gen_rules.ml\" , line 135, characters
72
- 6-96\n \
73
- Called from file \" list.ml\" , line 121, characters 24-34\n \
74
- Called from file \" src/dune/gen_rules.ml\" , line 138, characters
75
- 4-112\n \
76
- Called from file \" src/dune/gen_rules.ml\" , line 218, characters
77
- 4-119\n \
78
- Called from file \" src/dune/gen_rules.ml\" , line 349, characters
79
- 24-59\n \
80
- Called from file \" src/stdune/exn.ml\" , line 12, characters
81
- 8-11\n \
82
- Re-raised at file \" src/stdune/exn.ml\" , line 18, characters
83
- 4-11\n \
84
- Called from file \" src/memo/implicit_output.ml\" , line 120,
85
- characters 4-162\n \
86
- Called from file \" src/dune/rules.ml\" (inlined), line 192,
87
- characters 20-71\n \
88
- Called from file \" src/dune/rules.ml\" , line 195, characters
89
- 20-33\n \
90
- Called from file \" src/dune/build_system.ml\" , line 900,
91
- characters 6-76\n \
92
- Called from file \" src/stdune/exn_with_backtrace.ml\" , line 9,
93
- characters 8-12\n \
94
- "
95
- ; memo = ("load-dir", In_build_dir "default")
96
- }
97
- ; { ocaml =
98
- "Raised at file \" src/stdune/code_error.ml\" , line 9, characters
99
- 30-62\n \
100
- Called from file \" src/dune/mdx.ml\" , line 187, characters
101
- 23-61\n \
102
- Called from file \" list.ml\" , line 103, characters 22-25\n \
103
- Called from file \" src/stdune/list.ml\" , line 5, characters
104
- 19-33\n \
105
- Called from file \" src/dune/mdx.ml\" , line 185, characters
106
- 6-196\n \
107
- Called from file \" list.ml\" , line 110, characters 12-15\n \
108
- Called from file \" src/dune/gen_rules.ml\" , line 128, characters
109
- 6-34\n \
110
- Called from file \" src/dune/gen_rules.ml\" , line 135, characters
111
- 6-96\n \
112
- Called from file \" list.ml\" , line 121, characters 24-34\n \
113
- Called from file \" src/dune/gen_rules.ml\" , line 138, characters
114
- 4-112\n \
115
- Called from file \" src/dune/gen_rules.ml\" , line 218, characters
116
- 4-119\n \
117
- Called from file \" src/dune/gen_rules.ml\" , line 349, characters
118
- 24-59\n \
119
- Called from file \" src/stdune/exn.ml\" , line 12, characters
120
- 8-11\n \
121
- Re-raised at file \" src/stdune/exn.ml\" , line 18, characters
122
- 4-11\n \
123
- Called from file \" src/memo/implicit_output.ml\" , line 120,
124
- characters 4-162\n \
125
- Called from file \" src/dune/rules.ml\" (inlined), line 192,
126
- characters 20-71\n \
127
- Called from file \" src/dune/rules.ml\" , line 195, characters
128
- 20-33\n \
129
- Called from file \" src/dune/build_system.ml\" , line 900,
130
- characters 6-76\n \
131
- Called from file \" src/stdune/exn_with_backtrace.ml\" , line 9,
132
- characters 8-12\n \
133
- Re-raised at file \" src/stdune/exn.ml\" , line 36, characters
134
- 27-56\n \
135
- Called from file \" src/dune/build_system.ml\" , line 1046,
136
- characters 12-43\n \
137
- Called from file \" src/stdune/exn_with_backtrace.ml\" , line 9,
138
- characters 8-12\n \
139
- "
140
- ; memo = ("load-dir", In_build_dir ".aliases/default")
141
- }
142
- ]
143
- ; outer_call_stack = []
144
- }
145
- Raised at file "src/stdune/code_error.ml", line 9, characters 30-62
146
- Called from file "src/dune/mdx.ml", line 187, characters 23-61
147
- Called from file "list.ml", line 103, characters 22-25
148
- Called from file "src/stdune/list.ml", line 5, characters 19-33
149
- Called from file "src/dune/mdx.ml", line 185, characters 6-196
150
- Called from file "list.ml", line 110, characters 12-15
151
- Called from file "src/dune/gen_rules.ml", line 128, characters 6-34
152
- Called from file "src/dune/gen_rules.ml", line 135, characters 6-96
153
- Called from file "list.ml", line 121, characters 24-34
154
- Called from file "src/dune/gen_rules.ml", line 138, characters 4-112
155
- Called from file "src/dune/gen_rules.ml", line 218, characters 4-119
156
- Called from file "src/dune/gen_rules.ml", line 349, characters 24-59
157
- Called from file "src/stdune/exn.ml", line 12, characters 8-11
158
- Re-raised at file "src/stdune/exn.ml", line 18, characters 4-11
159
- Called from file "src/memo/implicit_output.ml", line 120, characters 4-162
160
- Called from file "src/dune/rules.ml" (inlined), line 192, characters 20-71
161
- Called from file "src/dune/rules.ml", line 195, characters 20-33
162
- Called from file "src/dune/build_system.ml", line 900, characters 6-76
163
- Called from file "src/stdune/exn_with_backtrace.ml", line 9, characters 8-12
164
- Re-raised at file "src/stdune/exn.ml", line 36, characters 27-56
165
- Called from file "src/dune/build_system.ml", line 1046, characters 12-43
166
- Called from file "src/stdune/exn_with_backtrace.ml", line 9, characters 8-12
167
- Re-raised at file "src/stdune/exn.ml", line 36, characters 27-56
168
- Called from file "src/dune/build_system.ml", line 685, characters 10-23
169
- Called from file "src/dune/build_system.ml", line 682, characters 17-34
170
- Called from file "src/dune/build.ml", line 293, characters 9-22
171
- Called from file "src/dune/build.ml", line 284, characters 58-73
172
- Called from file "src/dune/build.ml", line 284, characters 42-57
173
- Called from file "src/dune/build.ml", line 284, characters 42-57
174
- Called from file "src/dune/build.ml", line 284, characters 58-73
175
- Called from file "src/dune/build_system.ml", line 1237, characters 24-39
176
- Called from file "src/dune/build_system.ml", line 1850, characters 8-97
177
- Called from file "src/fiber/fiber.ml", line 109, characters 10-15
178
- Re-raised at file "src/stdune/exn.ml", line 36, characters 27-56
179
- Called from file "src/fiber/fiber.ml", line 80, characters 10-17
180
-
181
- I must not crash. Uncertainty is the mind-killer. Exceptions are the
182
- little-death that brings total obliteration. I will fully express my cases.
183
- Execution will pass over me and through me. And when it has gone past, I
184
- will unwind the stack along its path. Where the cases are handled there will
185
- be nothing. Only I will remain.
60
+ File "dune", line 1, characters 0-40:
61
+ 1 | (mdx
62
+ 2 | (files README.md)
63
+ 3 | (packages pkg))
64
+ Error: Package pkg does not exist
186
65
187
66
You can set MDX preludes using the preludes field of the stanza
188
67
0 commit comments