-
Notifications
You must be signed in to change notification settings - Fork 697
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
Add a command to list available build targets #4070
Comments
Things to bikeshed: what about a machine-readable format? Bash completion? Should we display fully qualified, or offer unqualified things? |
Related to this If I configure my project, I get something like
But, to build each of these, I need to do
It would be more useful if the naming was consistent, between the reported target names and how to request a build of the specific target. |
See also #3763 |
And it also makes sense to try and harmonise any component naming scheme with what is happening in stack |
|
|
So you need to prefix it with the package name to disambiguate. Try |
Well, given that the This issue is about having a naming scheme for targets, both for reporting in build output and invoking as a command. |
The naming scheme is |
Changing it to
Would make it consistent with the command to build the component, which is what I am after. |
IMO, it should stay as |
Well, this is just one example, and I am sure there will be many similar projects. To me it is a problem that there is not a concept of a default package, being the one in the current directory, being worked on, vs any of the dependencies. If no prefix is given, it should assume the current package. |
My 5 cents:
My proposal, introduce config value + flag pair "--convenient" and "--non-convenient". So interactive users with convenience enabled would get Another way to think about this is plumbing/porcelain separation in git. Separate commands for human and machines (where former use latters, obviously). Another such separation is whether or not try to guess case-insensitively the package name. Check e.g. |
|
Doesn't seem like any forward progress has been made on this in a while. I take it there are no plans to move forward on this in any way? |
@IvanMalison No-one is working on this AFAIK, so you're welcome to. But please post a short summary of what you're planning to do here so that we could comment. |
Four years later, are there any plans to add an analog of |
@mouse07410 repeating previous comment
|
If I had greater proficiency in Haskell, that's exactly what I would've done. As it is, unfortunately, I have to (regretfully) resort to asking those with more expertise in this. |
Should be resolved by #7500 |
Given that
cabal.project
can list additional local components, each with its own cabal file, it is not always clear what the appropriate build targets are.So perhaps add a command that will list the targets, e.g.
The text was updated successfully, but these errors were encountered: