haskell / haskell/cabal

ConfigFile/T8487/cabal.test.hs is fragile to changing compiler

Open
#9,731 1 comment 0 reactions 0 assignees View on GitHub
needs triage type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

This test modifies `--config-file`, which overrides the means the testsuite used to specify the compiler which cabal-install should use.

* If you use a `-w` flag to choose which ghc to compile the `cabal-tests` executable with.
* If you pass `--with-ghc=...` when running the tests

This doesn't show up in CI as we only test cabal-install against the ghc it was bootstrapped against.

I more robust way to write the test is to perhaps augment the `testUserCabalConfigFile`, which is local to each test, rather than override it completely. However, I will leave that for now.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.