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

Do not discard package location #3714 #3759

Merged
merged 2 commits into from
Jan 11, 2018
Merged

Conversation

snoyberg
Copy link
Contributor

Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

Please also shortly describe how you tested your change. Bonus points for added tests!

@mgsloan
Copy link
Contributor

mgsloan commented Jan 11, 2018

LGTM! Lets see if I understand this, though:

splitUnmetDeps is used for both packages in the global DB and packages in the snapshot. For the packages in the global DB, it needs to convert them to snapshot packages. For the packages in the snapshot, they should remain snapshot packages. Hence, pulling globalToSnapshot out of splitUnmetDeps and using it in only one case.

@snoyberg
Copy link
Contributor Author

Almost exactly correct. There are two stages to calling splitUnmetDeps on the snapshot packages. The second time around it's adding in local packages, so I'm that case the snapshot packages graduate to local packages.

@mgsloan
Copy link
Contributor

mgsloan commented Jan 11, 2018

I see, thanks!

@mgsloan mgsloan merged commit baf5505 into stable Jan 11, 2018
@mihaimaruseac mihaimaruseac deleted the 3714-discarded-package-location branch July 30, 2018 03:02
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.

2 participants