-
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
Add stack cp, clarify stack install #569
Comments
I think "stack cp" is a weird name for this. What about the use of stack install to fetch library dependencies? (stack On Sunday, July 12, 2015, Michael Snoyman notifications@github.com wrote:
-- Dan Burton |
There is some similarity to what stack does and the Unix |
@DanBurton Every @drwebb Be that as it may, many people have assumptions about what "install" means that go beyond what the Unix |
It's true, we must go by what most users will have in mind when they think of "install", at least this proposal is great because anyone can use the alias. Alas, being correct is not always right </strokes beard> |
Agreed that |
Also, Christopher Armstrong notifications@github.com schrieb am So.,
|
Just a new idea after some brainstorming, but I like this one the best out of all the options presented so far. What about referencing the fact that current |
I like the suggestions from @radix. However, what makes sense when I want an exe instead of al library, such as hoogle? |
Just to confirm: we're all in agreement that:
If that's the case and we don't have any deep disagreements, let's just make a decision and stick with it. |
I'd like to understand the objection a bit better: are you saying that if I In my mind, the nice thing about "cp" and "rm" is that they exactly mirror If all you want to do is make sure you have hoogle somewhere on your package manager.Mathieu Boespflug Director of Math and Science Software mobile +33 (0) 7 81 47 02 03 <%2B1%20%28858%29%20523%208778> (Central |
That makes sense. However, So my mindset is more of "put this exe in my PATH", which is probably better reflected by the "expose" suggestion. Naming it "exe" for "executable" would be good if "exec" were not already a command. "bin" is an alternative. @snoyberg sorry for continuing the bikeshed :) I will be fine with whatever is chosen, I just wanted to make sure all the use cases are being thought of first. |
one more example: Docker uses |
Alright, here's my opinionated approach to both this and the I'll hold off on merging until everyone has a chance to complain, since the Haskell community loves bikeshedding names so much :-P |
I am ok with whatever is chosen since I cannot come up with a clearly better alternative. |
I'm will be happy with what is chosen as well. We spend a lot of time naming things! This is a big one though that I personally will actually type more than anything, |
The point I brought up is that if a new user want to use hoogle, they probably won't think to run the command Another possible downside is that I can run There is also an edge case here: if my package is already on hackage, and I want to download and install the hackage version to my path, what is the behavior? Investigating this led me to open #606. It seems that stack will not look for a remote version of a local package. To me it makes sense to have 2 separate commands:
But I am happy to leave this as a future enhancement. As long as the install command is still available in a deprecated form, new users may be able to figure out to use |
OK, after a little more pressure, here's my final suggestion: we use Motivation:
I'll give this another day before merging to master... but then I hope |
This sounds good to me. To clarify:
|
Yes, exactly. |
Damn, I hate being late to the party. Sorry, but ``stack build --copy-bins AfC |
Furthermore, if there are things other than binaries that do need installing, then The only thing you're missing, perhaps, is the notion of either
AfC |
This was spawned by a mailing list discussion. I'm going to summarize what I think is the conclusion of that discussion:
stack install
is a misnomer, since this is just about copying an executable to a new directorystack cp
or similarstack install
command to existstack cp
command with the exact behavior ofstack install
today, and modifystack install
to (1) give a message "you probably meantstack cp
" (possibly with a link to this very issue?) and then perform astack cp
If we go this route, I imagine we should do something quite similar for
stack uninstall
, but that's really a separate discussion.The text was updated successfully, but these errors were encountered: