-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack build doesn't work without explicit package name (imprecise docs?) #493
Comments
Thanks for the report. I think this is a duplicate of #366. |
Alright, we're currently in a clear "no way to win 'em all" situation. This seems like a direct duplicate of #366, meaning at least two people thought the old behavior was unintuitive. The new behavior is now implemented which is "if no targets are given, build all targets." This however is contradicted by #552, which preferred the old behavior. I don't have a horse in this race, but we need to come up with a solution, and document it in the FAQ. I'm leaning towards the old behavior, as it seems like it overall confused people less. For the record, the following two incantations should be sufficient to overriding the default:
Pinging @DanBurton @drwebb @manny-fp, who I believe all expressed interest in this. Let's make a decision in the next day or two. |
I see three possible approaches:
I'm leaning towards (2). |
The As for me, the 3rd option (the new behaviour) by @chrisdone looks most natural. Rationale:
I don't like the 1st — behaviour depending on the pwd = the root condition — since to know what happens user would have to understand where in the packages hierarchy he is. I assume that could not always be obvious. |
My votes:
|
Alright, we're going with the new logic as per (3) above. |
Isn't there any work to be done here? It is still the case that |
Can you try the latest master? |
Oh yes, it works well on |
Will the logic (3) also apply to I'd actually suggest to use (2) consistently on every command |
Actually I'd be fine with the (3) for |
Steps to reproduce:
mkdir -p aa/src build
echo 'main = putStrLn "aa"' > aa/src/Main.hs
build/stack.yaml
as shown belowcd build && stack build
build/stack.yaml
:Expected:
As mentioned in
stack build --help
, I expected the stack to buildaa
:Actual:
No output, only
build/.stack-work
created.Here is the
stack ---version
output:Here is the command I ran with
--verbose
:However…
When calling explicitly, it all seems to work:
The text was updated successfully, but these errors were encountered: