Skip to content

Commit

Permalink
Add a faux pandoc package (for conflicts)
Browse files Browse the repository at this point in the history
Add conflicting versions of pandoc to repo but not all of them as there are so many
  • Loading branch information
philderbeast committed Dec 28, 2023
1 parent 5efd6a1 commit e74c5f8
Show file tree
Hide file tree
Showing 47 changed files with 36,344 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cabal-testsuite/PackageTests/ShortRejections/cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages: .
constraints: pandoc ==3.1.11
11 changes: 11 additions & 0 deletions cabal-testsuite/PackageTests/ShortRejections/pandoc.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cabal-version: 2.0
name: pandoc
version: 999999999.0.0.0
category: Testing
build-type: Simple

library
exposed-modules: MyLib
build-depends: base
hs-source-dirs: src
default-language: Haskell2010
10 changes: 10 additions & 0 deletions cabal-testsuite/PackageTests/ShortRejections/pandoc.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] next goal: pandoc (user goal)
[__0] rejecting: pandoc-999999999.0.0.0 (constraint from project config <ROOT>/cabal.project requires ==3.1.11)
[__0] rejecting: pandoc-3.1.11, pandoc-3.1.10, pandoc-3.1.9, pandoc-3.1.8, pandoc-3.1.7, pandoc-3.1.6.2, pandoc-3.1.6.1, pandoc-3.1.5, pandoc-3.1.4, pandoc-3.1.3, pandoc-3.1.2, pandoc-3.1.1, pandoc-3.0.1, pandoc-3.0, pandoc-2.19.2, pandoc-2.19.1, pandoc-2.19, pandoc-2.18, pandoc-2.17.1.1, pandoc-2.17.1, pandoc-2.17.0.1, pandoc-2.17, pandoc-2.16.2, pandoc-2.16.1, pandoc-2.16, pandoc-2.15, pandoc-2.14.2, pandoc-2.14.1, pandoc-2.14.0.3, pandoc-2.14.0.2, pandoc-2.14.0.1, pandoc-2.14, pandoc-2.13, pandoc-2.12, pandoc-2.11.4, pandoc-2.11.3.2, pandoc-2.11.3.1, pandoc-2.11.3, pandoc-2.11.2, pandoc-2.11.1.1, pandoc-2.11.1, pandoc-2.11.0.4 (constraint from user target requires ==999999999.0.0.0)
[__0] fail (backjumping, conflict set: pandoc)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: pandoc (44)
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/ShortRejections/pandoc.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Test.Cabal.Prelude

main = cabalTest . withRepo "repo" . withProjectFile "cabal.project" $ do
fails $ cabal "v2-build" ["all", "--dry-run"]

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/ShortRejections/src/MyLib.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module MyLib (someFunc) where

someFunc :: IO ()
someFunc = putStrLn "someFunc"

0 comments on commit e74c5f8

Please sign in to comment.