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

Comments

Projects
None yet
5 participants
@jcpetruzza
Contributor

jcpetruzza commented Jul 14, 2015

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

This comment has been minimized.

Member

chrisdone commented Jul 14, 2015

Not presently possible but it should be.

Related discussion here: #493 (comment)

@sjakobi

This comment has been minimized.

Contributor

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

This comment has been minimized.

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.

sjakobi added a commit to sjakobi/stack that referenced this issue Nov 10, 2015

sjakobi added a commit to sjakobi/stack that referenced this issue Nov 10, 2015

sjakobi added a commit to sjakobi/stack that referenced this issue Nov 10, 2015

sjakobi added a commit to sjakobi/stack that referenced this issue Nov 10, 2015

mgsloan added a commit that referenced this issue Nov 17, 2015

Merge pull request #1327 from sjakobi/selective-clean
Add selective cleaning for multi-package projects #583
@sjakobi

This comment has been minimized.

Contributor

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 Nov 25, 2015

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