-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fix build with cabal #3722
Fix build with cabal #3722
Conversation
I expected ci should fail due to changes in Query.hs 🤔 |
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.
Hi @jneira — we don't currently support building with cabal beyond what's in contrib/.
However, we might support cabal in the future, so I'm averse to adding cabal.project to .gitignore.
Not sure how coud we solve that behaviour tbh.
We use symlinks (sql/
) because stack and haskell-language-server already use different cwds. We use more symlinks (unison/
) because we have another project that uses unison
as a submodule under the unison/
path.
Maybe adding more symlinks will work for you, but for the submodule reason above, we don't want to change Query.hs
If you want to merge just the contrib/cabal.project
changes, possibly another symlink, and some development.markdown
changes, that would be okay.
Thanks for the feedback: sure, will revert the .gitignore, great to know cabal could be a first citizen. 😄
Sure, my fault, i did not check lastest instructions for building in windows and i did not activate symlinking. I am about to upload last versions with the needed changes |
f675b4e
to
6006b67
Compare
@aryairani changes done, still left the issue with the haskeline commit used in stack.yaml The commit does not belong to any branch: haskell/haskeline@d6c2643 And cabal throw an error when trying to fetch it:
(it works for non orphan commits) Should be cherry-pick the commit to the unison haskeline fork? I think it would be good to not depend on an orphaned commit of a external repo |
e8521bb
to
f6edb84
Compare
Hi @jneira sorry I missed your last messages. The haskeline issue should be resolved now if you want to try again 😬 |
f6edb84
to
ea22fa4
Compare
ea22fa4
to
b2895b1
Compare
This looks good to me. It closely matches what I use locally. Although, I don't even bother with a custom haskelline/configurator commit. I just use something from hackage and haven't noticed problems. |
The pr updates cabal.project to adjust it to last structural changes.
Unfortunately the codebase now uses th referencing files with relative paths and stack and cabal sets a different cwd 😟 (haskell/haskell-language-server#481)
Not sure how coud we solve that behaviour tbh. I believe atleats stack sets some C defs and we could add CPP conditions but i don't like it at all.
Another caveat: the haskeline commit 2944b11d19ee034c48276edc991736105c9d6143 does not exist anymore.
It is being referenced in stack.yaml but i am not sure how is even working. I've replicated the commit in my repo, but obviously it cant be the definitive solution.
The cabal build should be checked in ci to keep it sync (even with an optional job)