@@ -263,3 +263,124 @@ Could not retrieve some package sources, they will not be pinned nor installed:
263
263
264
264
Continue anyway? [y/n] y
265
265
### opam pin
266
+ ### : Parse error with future opam version field on pin
267
+ ### :: just the opam version that is a future
268
+ ### <pin:pin-at-two-one/pin-at-two-one.opam>
269
+ opam-version: "2.1"
270
+ ### opam install ./pin-at-two-one
271
+ [ERROR] In ${BASEDIR}/pin-at-two-one/pin-at-two-one.opam:
272
+ unsupported or missing file format version; should be 2.0 or older
273
+ [ERROR] Strict mode: aborting
274
+ # Return code 30 #
275
+ ### OPAMSTRICT=0 opam install ./pin-at-two-one
276
+ [ERROR] In ${BASEDIR}/pin-at-two-one/pin-at-two-one.opam:
277
+ unsupported or missing file format version; should be 2.0 or older [skipped]
278
+
279
+ [ERROR] Invalid opam file in pin-at-two-one source from file://${BASEDIR}/pin-at-two-one:
280
+ error 2: File format error: unsupported or missing file format version; should be 2.0 or older
281
+ [ERROR] No package named pin-at-two-one found.
282
+ # Return code 5 #
283
+ ### <pin:pin-at-two-two/pin-at-two-two.opam>
284
+ opam-version: "2.2"
285
+ ### opam install ./pin-at-two-two
286
+ [ERROR] In ${BASEDIR}/pin-at-two-two/pin-at-two-two.opam:
287
+ unsupported or missing file format version; should be 2.0 or older
288
+ [ERROR] Strict mode: aborting
289
+ # Return code 30 #
290
+ ### OPAMSTRICT=0 opam install ./pin-at-two-two
291
+ [ERROR] In ${BASEDIR}/pin-at-two-two/pin-at-two-two.opam:
292
+ unsupported or missing file format version; should be 2.0 or older [skipped]
293
+
294
+ [ERROR] Invalid opam file in pin-at-two-two source from file://${BASEDIR}/pin-at-two-two:
295
+ error 2: File format error: unsupported or missing file format version; should be 2.0 or older
296
+ [ERROR] No package named pin-at-two-two found.
297
+ # Return code 5 #
298
+ ### <pin:pin-at-two-three/pin-at-two-three.opam>
299
+ opam-version: "2.3"
300
+ ### opam install ./pin-at-two-three
301
+ [ERROR] In ${BASEDIR}/pin-at-two-three/pin-at-two-three.opam:
302
+ unsupported or missing file format version; should be 2.0 or older
303
+ [ERROR] Strict mode: aborting
304
+ # Return code 30 #
305
+ ### OPAMSTRICT=0 opam install ./pin-at-two-three
306
+ [ERROR] In ${BASEDIR}/pin-at-two-three/pin-at-two-three.opam:
307
+ unsupported or missing file format version; should be 2.0 or older [skipped]
308
+
309
+ [ERROR] Invalid opam file in pin-at-two-three source from file://${BASEDIR}/pin-at-two-three:
310
+ error 2: File format error: unsupported or missing file format version; should be 2.0 or older
311
+ [ERROR] No package named pin-at-two-three found.
312
+ # Return code 5 #
313
+ ### <pin:pin-at-future/pin-at-future.opam>
314
+ opam-version: "50.0"
315
+ ### opam install ./pin-at-future
316
+ [ERROR] In ${BASEDIR}/pin-at-future/pin-at-future.opam:
317
+ unsupported or missing file format version; should be 2.0 or older
318
+ [ERROR] Strict mode: aborting
319
+ # Return code 30 #
320
+ ### OPAMSTRICT=0 opam install ./pin-at-future
321
+ [ERROR] In ${BASEDIR}/pin-at-future/pin-at-future.opam:
322
+ unsupported or missing file format version; should be 2.0 or older [skipped]
323
+
324
+ [ERROR] Invalid opam file in pin-at-future source from file://${BASEDIR}/pin-at-future:
325
+ error 2: File format error: unsupported or missing file format version; should be 2.0 or older
326
+ [ERROR] No package named pin-at-future found.
327
+ # Return code 5 #
328
+ ### :: opam version is a future and there is a parse error
329
+ ### <junk.sh>
330
+ echo GARBAGE>>"$1"
331
+ ### sh junk.sh pin-at-two-one/pin-at-two-one.opam
332
+ ### opam install ./pin-at-two-one
333
+ [ERROR] At ${BASEDIR}/pin-at-two-one/pin-at-two-one.opam:11:0-11:0::
334
+ Parse error
335
+ [ERROR] Strict mode: aborting
336
+ # Return code 30 #
337
+ ### OPAMSTRICT=0 opam install ./pin-at-two-one
338
+ [ERROR] At ${BASEDIR}/pin-at-two-one/pin-at-two-one.opam:11:0-11:0::
339
+ Parse error [skipped]
340
+
341
+ [ERROR] Invalid opam file in pin-at-two-one source from file://${BASEDIR}/pin-at-two-one:
342
+ error 2: File format error at line 11, column 0: Parse error
343
+ [ERROR] No package named pin-at-two-one found.
344
+ # Return code 5 #
345
+ ### sh junk.sh pin-at-two-two/pin-at-two-two.opam
346
+ ### opam install ./pin-at-two-two
347
+ [ERROR] At ${BASEDIR}/pin-at-two-two/pin-at-two-two.opam:11:0-11:0::
348
+ Parse error
349
+ [ERROR] Strict mode: aborting
350
+ # Return code 30 #
351
+ ### OPAMSTRICT=0 opam install ./pin-at-two-two
352
+ [ERROR] At ${BASEDIR}/pin-at-two-two/pin-at-two-two.opam:11:0-11:0::
353
+ Parse error [skipped]
354
+
355
+ [ERROR] Invalid opam file in pin-at-two-two source from file://${BASEDIR}/pin-at-two-two:
356
+ error 2: File format error at line 11, column 0: Parse error
357
+ [ERROR] No package named pin-at-two-two found.
358
+ # Return code 5 #
359
+ ### sh junk.sh pin-at-two-three/pin-at-two-three.opam
360
+ ### opam install ./pin-at-two-three
361
+ [ERROR] At ${BASEDIR}/pin-at-two-three/pin-at-two-three.opam:11:0-11:0::
362
+ Parse error
363
+ [ERROR] Strict mode: aborting
364
+ # Return code 30 #
365
+ ### OPAMSTRICT=0 opam install ./pin-at-two-three
366
+ [ERROR] At ${BASEDIR}/pin-at-two-three/pin-at-two-three.opam:11:0-11:0::
367
+ Parse error [skipped]
368
+
369
+ [ERROR] Invalid opam file in pin-at-two-three source from file://${BASEDIR}/pin-at-two-three:
370
+ error 2: File format error at line 11, column 0: Parse error
371
+ [ERROR] No package named pin-at-two-three found.
372
+ # Return code 5 #
373
+ ### sh junk.sh pin-at-future/pin-at-future.opam
374
+ ### opam install ./pin-at-future
375
+ [ERROR] In ${BASEDIR}/pin-at-future/pin-at-future.opam:
376
+ unsupported or missing file format version; should be 2.0 or older
377
+ [ERROR] Strict mode: aborting
378
+ # Return code 30 #
379
+ ### OPAMSTRICT=0 opam install ./pin-at-future
380
+ [ERROR] In ${BASEDIR}/pin-at-future/pin-at-future.opam:
381
+ unsupported or missing file format version; should be 2.0 or older [skipped]
382
+
383
+ [ERROR] Invalid opam file in pin-at-future source from file://${BASEDIR}/pin-at-future:
384
+ error 2: File format error: unsupported or missing file format version; should be 2.0 or older
385
+ [ERROR] No package named pin-at-future found.
386
+ # Return code 5 #
0 commit comments