-
Notifications
You must be signed in to change notification settings - Fork 364
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
Support cabal-install 3.0.0.0 in the Makefile #4216
Comments
We already made the necessary changes as part of the |
The Travis job for GHC 8.8.1 is using |
I got an error when running |
The following one is built with GHC 8.8.1 and cabal 3.0 |
The above job don't use |
You have to use |
If I was not mistaken, stack uses cabal to install packages ... |
I think |
I guess. Are you planning to update the user documentation for taking care of the different versions of |
Running $ cabal install
cabal: filepath wildcard 'doc/user-manual.pdf' does not match any files. This is also the error in Travis when using GHC 8.8.1 and |
I think the idea is to eventually deprecate |
I'm building Agda with cabal 3.0.0.0 for weeks. It always work |
Can you make a GH Actions workflow using cabal 3.0 with v2-install? Just make sure that Agda is compatible. |
How did you make the stack one? Is it just porting the |
Almost. GHC, cabal (2.0-3.0) and stack are all preinstalled already, so it should be simpler. |
Then perhaps the makefile could be updated to use |
It seems that by removing I haven't run the test suites with the compiled binary, though. Adding this workflow might be a good idea before revising Makefile? I am not able to revise Makefile this year anyway ... |
Yes. Please remove it. I'll add it back in the releases branches. |
To migrate to v2-cabal these problems remain for me:
|
Could you clarify the status of this issue/effort? How long till there's a version of If one doesn't want to mess with his Haskell environment using Should the following work (in sequence as typed):
|
My latest efforts are at: agda/src/github/workflows/cabal-test.yml Lines 93 to 110 in 7f58030
|
If you have a recent version of cabal-install, then you can perhaps use |
$ cabal list-bin agda
cabal: No or multiple targets given
$ cabal list-bin agda-tests
cabal: No or multiple targets given
$ cabal list-bin agda-mode
cabal: No or multiple targets given
$ cabal list-bin
cabal: One target is required, none provided
$ cabal list-bin --project-file=Agda.cabal agda
cabal: There is no <pkgname>.cabal package file or cabal.project file. To
build packages locally you need at minimum a <pkgname>.cabal file. You can use
'cabal init' to create one.
For non-trivial projects you will also want a cabal.project file in the root
directory of your project. This file lists the packages in your project and
all other build configuration. See the Cabal user guide for full details.
$ cabal list-bin --project-file=Agda.cabal agda-mode
cabal: There is no <pkgname>.cabal package file or cabal.project file. To
build packages locally you need at minimum a <pkgname>.cabal file. You can use
'cabal init' to create one.
For non-trivial projects you will also want a cabal.project file in the root
directory of your project. This file lists the packages in your project and
all other build configuration. See the Cabal user guide for full details.
|
Also, please take a look at haskell/cabal#7693 - perhaps it would be helpful here, or you might be able to give some useful feedback there. |
#4216 (comment) looks like haskell/cabal#7679 |
They are two different aspects of the same problem:
|
As asked here - what's the point of having |
Dunno, maybe @asr can say more. I can see a use for
|
|
As for CI, the main benefit of using |
OK, so having had all this discussion and observing what Cabal maintainers got to say about this, where are we regarding move to UpdateIt looks like the sequence for
Do you concur? If so, how to deal with (3) above? Update 2Specifically, what scripts and |
Uses a dedicated `cabal.project` file to pass the necessary `ghc-options` that skip code generation.
Uses a dedicated `cabal.project` file to pass the necessary `ghc-options` that skip code generation.
Uses a dedicated `cabal.project` file to pass the necessary `ghc-options` that skip code generation.
I created this issue for collecting/reporting the required changes/issues for supporting
cabal-install 3.0.0.0
.The text was updated successfully, but these errors were encountered: