commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
4k stars 843 forks source link

`stack upgrade` via GitHub zip archive #3094

Open sjakobi opened 7 years ago

sjakobi commented 7 years ago

stack upgrade --git requires a Git installation to clone the stack repo. If we'd instead download https://github.com/commercialhaskell/stack/archive/master.zip we could do without git (as long as stack's stack.yaml doesn't have any extra-deps with git locations).

If the --git flag is confusing for that mode, maybe we could call it --dev.

mgsloan commented 7 years ago

Sounds good to me!

Not sure if it's worth the flag rename, but then again this would likely mean changing the --git-repo flag as well, perhaps to --dev-archive or something.

sjakobi commented 7 years ago

With --git-repo we don't really know if the repo is also hosted on GitHub and if it provides a zip archive at the same subpath.