-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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... |
cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs
Outdated
Show resolved
Hide resolved
(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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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]>
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.