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

Cleaning one package on a multi-package project #583

Closed
jcpetruzza opened this issue Jul 14, 2015 · 4 comments
Closed

Cleaning one package on a multi-package project #583

jcpetruzza opened this issue Jul 14, 2015 · 4 comments

Comments

@jcpetruzza
Copy link
Contributor

In multi-package projects, stack clean will clean every package, but I couldn't find a way of limiting this to only a single package (or a subset of packages). Is it possible at all? (when re-building all the packages in the project takes time, this can become annoying rather fast!)

In case anyone wonders, neither cabal clean nor runhaskell Setup.hs clean will do the trick...

@chrisdone chrisdone self-assigned this Jul 14, 2015
@chrisdone
Copy link
Member

Not presently possible but it should be.

Related discussion here: #493 (comment)

@sjakobi
Copy link
Member

sjakobi commented Nov 3, 2015

What should the usage look like?

Just stack clean pkg and stack clean path-to-pkg?

Or a larger subset of build's target syntax?

@borsboom
Copy link
Contributor

borsboom commented Nov 3, 2015

I'd say just specifying the package would make sense. It should probably follow similar logic as stack build for selecting the default packages to clean based on the current directory, though.

mgsloan added a commit that referenced this issue Nov 17, 2015
Add selective cleaning for multi-package projects #583
@sjakobi
Copy link
Member

sjakobi commented Nov 25, 2015

Resolved via 729b61e and released with stack-0.1.8.0

Please reopen if it doesn't work as expected.

@sjakobi sjakobi closed this as completed Nov 25, 2015
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

5 participants