Skip to content

cabal build && cabal install in a sandbox compiles the package twice #2106

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

Closed
23Skidoo opened this issue Sep 14, 2014 · 2 comments
Closed

cabal build && cabal install in a sandbox compiles the package twice #2106

23Skidoo opened this issue Sep 14, 2014 · 2 comments

Comments

@23Skidoo
Copy link
Member

When in a sandbox, running cabal install without arguments will use the dist/dist-$HASH directory for storing intermediate files. However, if you previously ran cabal build, it used dist. This leads to unnecessary recompilation; dist/dist-$HASH should be used only for add-source dependencies.

@23Skidoo
Copy link
Member Author

When in a sandbox, running cabal install without arguments will use the dist/dist-$HASH directory for storing intermediate files.

See #1281 for original discussion.

@ttuegel ttuegel added this to the cabal-install-1.24 milestone Apr 24, 2015
@23Skidoo 23Skidoo modified the milestones: cabal-install 1.24, cabal-install 1.26 Feb 21, 2016
@23Skidoo 23Skidoo removed their assignment Jul 27, 2016
@ezyang ezyang modified the milestone: cabal-install 2.0 Sep 6, 2016
@phadej
Copy link
Collaborator

phadej commented Aug 31, 2020

sandbox functionality is removed.

@phadej phadej closed this as completed Aug 31, 2020
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