commercialhaskell / commercialhaskell/stack

Please add a warning and cancel option when options change

Open
#1,875 10 comments 2 reactions 0 assignees View on GitHub
type: discuss type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

If I accidentally run "stack install" with different options (add/remove -profile, --extra-lib-dirs, etc), everything is reset and rebuilt.... For our project, this can take a long time, 10-20 minutes. I understand why you have to do this, and agree that it is the correct decision.

However, a warning that would let us cancel would be great.... Especially since I often just mistype or forget a particular option (like -profile), and what should have been a 30 second compile suddenly becomes a 20 minute ordeal. I do this a lot....

Something like this would be great:

```
> stack install
Warning: You have changed build options, and stack is about to delete all prebuilt
packages and rebuild from scratch (this can take a long time). Do you wish to continue? (Y/n)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.