update cabal deps to work with 9.4

This commit is contained in:
Jon Ruskin 2022-12-22 19:52:04 -07:00
Родитель 41a0c2a6f3
Коммит 1a0f1b27e7
3 изменённых файлов: 6 добавлений и 5 удалений

3
.github/workflows/test.yml поставляемый
Просмотреть файл

@ -49,7 +49,7 @@ jobs:
needs: core
strategy:
matrix:
ghc: [ '9.0', '9.2' ]
ghc: [ '9.0', '9.2', '9.4' ]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
@ -60,6 +60,7 @@ jobs:
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: cache cabal dependencies
uses: actions/cache@v3
with:

2
test/fixtures/cabal/app.cabal поставляемый
Просмотреть файл

@ -15,5 +15,5 @@ library
executable app
hs-source-dirs: app
main-is: Main.hs
build-depends: base, semilattices == 0.0.0.4
build-depends: base, nats
default-language: Haskell2010

Просмотреть файл

@ -29,7 +29,7 @@ if Licensed::Shell.tool_available?("ghc")
it "finds indirect dependencies" do
config["cabal"] = { "ghc_package_db" => ["global", "user", local_db, cabal_db] }
Dir.chdir(fixtures) do
dep = source.dependencies.detect { |d| d.name == "bytestring" }
dep = source.dependencies.detect { |d| d.name == "unliftio-core" }
assert dep
assert_equal "cabal", dep.record["type"]
assert dep.record["homepage"]
@ -51,7 +51,7 @@ if Licensed::Shell.tool_available?("ghc")
it "finds dependencies for executables" do
config["cabal"] = { "ghc_package_db" => ["global", "user", local_db, cabal_db] }
Dir.chdir(fixtures) do
dep = source.dependencies.detect { |d| d.name == "semilattices" }
dep = source.dependencies.detect { |d| d.name == "nats" }
assert dep
assert_equal "cabal", dep.record["type"]
assert dep.version
@ -80,7 +80,7 @@ if Licensed::Shell.tool_available?("ghc")
# look in locations that don't contain the package
config["cabal"] = { "ghc_package_db" => [local_db, cabal_db, "user"] }
Dir.chdir(fixtures) do
dep = source.dependencies.detect { |d| d.name == "bytestring" }
dep = source.dependencies.detect { |d| d.name == "transformers" }
assert dep
assert_includes dep.errors, "package not found"
end