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

Add package.yaml workaround to stack rebuild issue #3094

Merged
merged 2 commits into from Jun 4, 2022

Conversation

mitchellwrosen
Copy link
Member

Upstream issue: commercialhaskell/stack#5503

In short, stack later than 2.3.1 rebuilds too often:

stack build
stack build

usually unregisters a few packages and rebuilds, due to detected changes to auto-generated Paths_* modules. So, @aryairani found this workaround, which I cherry-picked from another branch onto trunk.

Copy link
Contributor

@ChrisPenner ChrisPenner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh; TIL.

Glad we've got a fix for that; Here's hoping that means I can stack build --fast --test to and then later stack build --fast without rebuilding everything now? 🤞🏼

dependencies:
- criterion
- sandi
- unison-util
- unison-util-base32hex
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this should be deleted, this package doesn't exist on trunk

@mitchellwrosen mitchellwrosen merged commit 3aa6bfd into trunk Jun 4, 2022
@mitchellwrosen mitchellwrosen deleted the less-rebuilds branch June 4, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants