Skip to content

Commit e8d4894

Browse files
committed
Use legacy parser for path duplicates test
1 parent e396f5c commit e8d4894

File tree

2 files changed

+2
-165
lines changed

2 files changed

+2
-165
lines changed

cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out

Lines changed: 0 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -442,169 +442,6 @@ Warning: 2 imports of woops/woops-9.config;
442442
imported by: woops-2.config
443443
imported by: woops/woops-1.config
444444
imported by: woops-0.project
445-
Configuration is affected by the following files:
446-
- woops-0.project
447-
- woops-2.config
448-
imported by: woops/woops-1.config
449-
imported by: woops-0.project
450-
- woops-4.config
451-
imported by: woops/woops-3.config
452-
imported by: woops-0.project
453-
- woops-4.config
454-
imported by: woops/woops-3.config
455-
imported by: woops-2.config
456-
imported by: woops/woops-1.config
457-
imported by: woops-0.project
458-
- woops-6.config
459-
imported by: woops/woops-5.config
460-
imported by: woops-4.config
461-
imported by: woops/woops-3.config
462-
imported by: woops-0.project
463-
- woops-6.config
464-
imported by: woops/woops-5.config
465-
imported by: woops-4.config
466-
imported by: woops/woops-3.config
467-
imported by: woops-2.config
468-
imported by: woops/woops-1.config
469-
imported by: woops-0.project
470-
- woops-8.config
471-
imported by: woops/woops-7.config
472-
imported by: woops-6.config
473-
imported by: woops/woops-5.config
474-
imported by: woops-4.config
475-
imported by: woops/woops-3.config
476-
imported by: woops-0.project
477-
- woops-8.config
478-
imported by: woops/woops-7.config
479-
imported by: woops-6.config
480-
imported by: woops/woops-5.config
481-
imported by: woops-4.config
482-
imported by: woops/woops-3.config
483-
imported by: woops-2.config
484-
imported by: woops/woops-1.config
485-
imported by: woops-0.project
486-
- woops/woops-1.config
487-
imported by: woops-0.project
488-
- woops/woops-3.config
489-
imported by: woops-0.project
490-
- woops/woops-3.config
491-
imported by: woops-2.config
492-
imported by: woops/woops-1.config
493-
imported by: woops-0.project
494-
- woops/woops-5.config
495-
imported by: woops-4.config
496-
imported by: woops/woops-3.config
497-
imported by: woops-0.project
498-
- woops/woops-5.config
499-
imported by: woops-4.config
500-
imported by: woops/woops-3.config
501-
imported by: woops-2.config
502-
imported by: woops/woops-1.config
503-
imported by: woops-0.project
504-
- woops/woops-7.config
505-
imported by: woops-6.config
506-
imported by: woops/woops-5.config
507-
imported by: woops-4.config
508-
imported by: woops/woops-3.config
509-
imported by: woops-0.project
510-
- woops/woops-7.config
511-
imported by: woops-6.config
512-
imported by: woops/woops-5.config
513-
imported by: woops-4.config
514-
imported by: woops/woops-3.config
515-
imported by: woops-2.config
516-
imported by: woops/woops-1.config
517-
imported by: woops-0.project
518-
- woops/woops-9.config
519-
imported by: woops-8.config
520-
imported by: woops/woops-7.config
521-
imported by: woops-6.config
522-
imported by: woops/woops-5.config
523-
imported by: woops-4.config
524-
imported by: woops/woops-3.config
525-
imported by: woops-0.project
526-
- woops/woops-9.config
527-
imported by: woops-8.config
528-
imported by: woops/woops-7.config
529-
imported by: woops-6.config
530-
imported by: woops/woops-5.config
531-
imported by: woops-4.config
532-
imported by: woops/woops-3.config
533-
imported by: woops-2.config
534-
imported by: woops/woops-1.config
535-
imported by: woops-0.project
536-
- https://www.stackage.org/lts-21.25/cabal.config
537-
imported by: woops-2.config
538-
imported by: woops/woops-1.config
539-
imported by: woops-0.project
540-
- https://www.stackage.org/lts-21.25/cabal.config
541-
imported by: woops-4.config
542-
imported by: woops/woops-3.config
543-
imported by: woops-2.config
544-
imported by: woops/woops-1.config
545-
imported by: woops-0.project
546-
- https://www.stackage.org/lts-21.25/cabal.config
547-
imported by: woops-6.config
548-
imported by: woops/woops-5.config
549-
imported by: woops-4.config
550-
imported by: woops/woops-3.config
551-
imported by: woops-2.config
552-
imported by: woops/woops-1.config
553-
imported by: woops-0.project
554-
- https://www.stackage.org/lts-21.25/cabal.config
555-
imported by: woops-8.config
556-
imported by: woops/woops-7.config
557-
imported by: woops-6.config
558-
imported by: woops/woops-5.config
559-
imported by: woops-4.config
560-
imported by: woops/woops-3.config
561-
imported by: woops-2.config
562-
imported by: woops/woops-1.config
563-
imported by: woops-0.project
564-
- https://www.stackage.org/lts-21.25/cabal.config
565-
imported by: woops/woops-1.config
566-
imported by: woops-0.project
567-
- https://www.stackage.org/lts-21.25/cabal.config
568-
imported by: woops/woops-3.config
569-
imported by: woops-2.config
570-
imported by: woops/woops-1.config
571-
imported by: woops-0.project
572-
- https://www.stackage.org/lts-21.25/cabal.config
573-
imported by: woops/woops-5.config
574-
imported by: woops-4.config
575-
imported by: woops/woops-3.config
576-
imported by: woops-2.config
577-
imported by: woops/woops-1.config
578-
imported by: woops-0.project
579-
- https://www.stackage.org/lts-21.25/cabal.config
580-
imported by: woops/woops-7.config
581-
imported by: woops-6.config
582-
imported by: woops/woops-5.config
583-
imported by: woops-4.config
584-
imported by: woops/woops-3.config
585-
imported by: woops-2.config
586-
imported by: woops/woops-1.config
587-
imported by: woops-0.project
588-
- https://www.stackage.org/lts-21.25/cabal.config
589-
imported by: woops/woops-9.config
590-
imported by: woops-8.config
591-
imported by: woops/woops-7.config
592-
imported by: woops-6.config
593-
imported by: woops/woops-5.config
594-
imported by: woops-4.config
595-
imported by: woops/woops-3.config
596-
imported by: woops-0.project
597-
- https://www.stackage.org/lts-21.25/cabal.config
598-
imported by: woops/woops-9.config
599-
imported by: woops-8.config
600-
imported by: woops/woops-7.config
601-
imported by: woops-6.config
602-
imported by: woops/woops-5.config
603-
imported by: woops-4.config
604-
imported by: woops/woops-3.config
605-
imported by: woops-2.config
606-
imported by: woops/woops-1.config
607-
imported by: woops-0.project
608445
Resolving dependencies...
609446
Build profile: -w ghc-9.4.8 -O1
610447
In order, the following will be built:

cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ main = cabalTest . withRepo "repo" . recordMode RecordMarked $ do
161161
-- +-- yops/yops-9.config (no further imports)
162162
-- +-- yops/yops-9.config (no further imports)
163163
log "checking that we detect when the same config is imported via many different paths"
164-
yopping <- cabal' "v2-build" [ "--project-file=yops-0.project" ]
164+
yopping <- cabal' "v2-build" [ "--project-file=yops-0.project", "--project-file-parser=legacy" ]
165165
assertOutputContains "Warning: 2 imports" yopping
166166

167167
log "checking that we detect when the same config is imported via many different paths"
168-
wooping <- cabal' "v2-build" [ "--project-file=woops-0.project" ]
168+
wooping <- cabal' "v2-build" [ "--project-file=woops-0.project", "--project-file-parser=legacy" ]
169169
assertOutputContains "Warning: 10 imports" wooping
170170

171171
log "checking bad conditional"

0 commit comments

Comments
 (0)