Skip to content

Commit

Permalink
Disable environment files in packagedb test
Browse files Browse the repository at this point in the history
Since this test is specifically about checking that hint can pass
on package-db flags to GHC correctly, it makes sense to disable the
environment file in this test using `-package-env -` so that
the package-db is not used implicitly as a result of the
environment file.
  • Loading branch information
christiaanb committed May 23, 2023
1 parent bf20c6d commit 05bfce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit-tests/run-unit-tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ test_package_db = IOTestCase "package_db" [dir] $ \wrapInterp -> do
& last
-- "8.8.4"
let pkgdb = dir </> "dist-newstyle" </> "packagedb" </> ("ghc-" ++ ghcVersion)
ghc_args = ["-package-db=" ++ pkgdb]
ghc_args = ["-package-db=" ++ pkgdb,"-package-env","-"]

-- stack sets GHC_ENVIRONMENT to a file which pins down the versions of
-- all the packages we can load, and since it does not list my-package,
Expand Down

0 comments on commit 05bfce9

Please sign in to comment.