Repository navigation
only check for compiler when project file has conditionals - #8358
Conversation
|
@mergify rebase |
✅ Branch has been successfully rebased |
316b311 to
2b9e1ef
Compare
|
Added a test, but it succeeds even when it should fail because I can't set the env to not have ghc in the path properly somehow. Setting it to Nothing makes the system scream about how there's no path at all, but setting it to Also I discovered in working on this that sdist's fix to respect project options in #8109 was incomplete and I made a hopefully totally safe change to fix that too... |
|
(live testing as requested in cabal-dev meet) I can confirm that on my dev machine, with GHC not in
|
|
As per our discussion in the meeting, we don't seem to be able to test with an altered path missing ghc, so I've rolled back the not-working tests and we'll rely on manual verification. After I fix up docs and changelog this is ready for merge. |
|
Last minute idea about a test to show that GHC is not needed... I see a bunch of |
|
good thought, but i just tried that and that didn't work either. Terribly confusing. |
|
i suppose it relies in the PATH anyways, maybe a |
|
@jneira Gershom tried it, see above:
|
Mikolaj
left a comment
There was a problem hiding this comment.
If this just physically can't be tested in CI, let's just merge as is. :)
|
@gbaz: would you prefer a merge_me or a squash_me? |
|
Certainly a squash -- I was hoping to update the docs first, but will not be able to get to it until next week. |
|
Let me squash if for you, in that case. :) |
|
Mergify probably balks at the |
|
@Mikolaj added changelog and docs. Please do squash/merge! |
|
With pleasure. |
|
@mergify rebase |
✅ Branch has been successfully rebased |
a856621 to
8343207
Compare
) * only check for compiler when project file has conditionals * fix sdist options a bit plus test * whitespace * poke tests around * Update cabal.out * Update cabal.test.hs * changelog/docs Co-authored-by: Gershom Bazerman <[email protected]>
The workaround added in #187726 for haskell/cabal#8352 is no longer needed. cabal-install 3.8.1.0 introduced a regression where `cabal sdist` required GHC to be in PATH. This was fixed in cabal-install 3.10.1.0 (haskell/cabal#8358), and nixpkgs now uses cabal-install 3.16.0.0. tests.haskell.cabalSdist passes.
Should be a simple fix for #8352 -- first check that a project file has conditionals before attempting to fetch the compiler/arch etc info for use in evaluating them. That way, as long as a project file does not have conditionals, actions which did not require ghc to be available (such as sdist) will remain not requiring ghc.