Skip to content

Make cabal check supports targets (was cabal check all/local packages in a project) #6282

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

Open
robrix opened this issue Oct 3, 2019 · 3 comments · May be fixed by #9605
Open

Make cabal check supports targets (was cabal check all/local packages in a project) #6282

robrix opened this issue Oct 3, 2019 · 3 comments · May be fixed by #9605

Comments

@robrix
Copy link

robrix commented Oct 3, 2019

I have a project with multiple (indeed, many) packages. I would like to cabal check them in CI in the same way that I build them, test them, generate their haddocks, etc., i.e. using cabal <blah> all. However, cabal check doesn’t accept any arguments, and in fact requires me to be in the same directory as the .cabal file for the package i want to check.

Likewise, from the root of my project, if I want to cabal check some specific package, I have to first cd to its directory, because cabal check <local package name> isn’t accepted.

  1. cd somewhere in a project other than where the .cabal file for the package you want to check lives.
  2. cabal check <package name>
jonathanknowles added a commit to IntersectMBO/bech32 that referenced this issue Feb 17, 2020
Unfortunately, there is no `cabal check all`. See:

haskell/cabal#6282

So we have to manually change directories before we can issue the `cabal
check` command.
jonathanknowles added a commit to IntersectMBO/bech32 that referenced this issue Feb 17, 2020
Unfortunately, there is no `cabal check all`. See:

haskell/cabal#6282

So we have to manually change directories before we can issue the `cabal
check` command.
jonathanknowles added a commit to IntersectMBO/bech32 that referenced this issue Feb 18, 2020
Unfortunately, there is no `cabal check all`. See:

haskell/cabal#6282

So we have to manually change directories before we can issue the `cabal
check` command.
jonathanknowles added a commit to IntersectMBO/bech32 that referenced this issue Feb 18, 2020
Unfortunately, there is no `cabal check all`. See:

haskell/cabal#6282

So we have to manually change directories before we can issue the `cabal
check` command.
jonathanknowles added a commit to IntersectMBO/bech32 that referenced this issue Feb 18, 2020
Unfortunately, there is no `cabal check all`. See:

haskell/cabal#6282

So we have to manually change directories before we can issue the `cabal
check` command.
jonathanknowles added a commit to IntersectMBO/bech32 that referenced this issue Feb 19, 2020
Unfortunately, there is no `cabal check all`. See:

haskell/cabal#6282

So we have to manually change directories before we can issue the `cabal
check` command.
@jneira jneira changed the title cabal check all/local packages in a project Make cabal check supports targets (was cabal check all/local packages in a project) Apr 24, 2022
@jneira
Copy link
Member

jneira commented Apr 24, 2022

@robrix i hope you dont mind i renamed the issue to note what would be the task to get what you ask originally

@robrix
Copy link
Author

robrix commented Apr 29, 2022

@jneira Whatever you think is best!

@ffaf1
Copy link
Collaborator

ffaf1 commented Feb 19, 2023

I have a rough working implementation, #8587 needs to be resolved first.

@ffaf1 ffaf1 linked a pull request Jan 10, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants