Skip to content
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

Allow explicit reconfigure #914

Closed
ezyang opened this issue Sep 3, 2015 · 4 comments
Closed

Allow explicit reconfigure #914

ezyang opened this issue Sep 3, 2015 · 4 comments
Assignees
Milestone

Comments

@ezyang
Copy link

ezyang commented Sep 3, 2015

With a custom setup script, it is sometimes extremely useful to explicitly reconfigure. (For example, Cabal self-bootstraps a Setup.hs script build with itself; if there are updates to any of the internal data structures it uses, a reconfigure is needed.) So having a stack configure which reconfigures the package in question would be useful.

@snoyberg
Copy link
Contributor

snoyberg commented Sep 6, 2015

I'm very much -1 on having an explicit stack configure command, as it would give the incorrect impression that stack requires explicit configuring like cabal does (the install command has already caused enough pain). Would stack clean be too much of a bazooka for triggering a reconfigure?

@snoyberg snoyberg added this to the 0.3.0.0 milestone Sep 6, 2015
@snoyberg snoyberg self-assigned this Sep 6, 2015
@snoyberg
Copy link
Contributor

snoyberg commented Sep 8, 2015

What about about a --reconfigure flag to stack build?

@snoyberg
Copy link
Contributor

snoyberg commented Sep 8, 2015

OK, new --reconfigure flag added to master. It won't force your code to rebuild if there are no changes, but if the code is being rebuilt, it will start with a reconfigure, which seems like the right behavior in (virtually?) all cases.

@ezyang
Copy link
Author

ezyang commented Sep 8, 2015

Great, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants