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

Prefer non-boot files when creating the FinderCache. #3687

Merged
merged 2 commits into from
Jul 25, 2023
Merged

Conversation

wz1000
Copy link
Collaborator

@wz1000 wz1000 commented Jul 5, 2023

Boot files in the finder cache can lead to uneccesary linking errors like
https://gitlab.haskell.org/ghc/ghc/-/issues/19816 when we actually have a
non-boot file in scope.

@wz1000 wz1000 requested a review from pepeiborra as a code owner July 5, 2023 12:35
@michaelpj
Copy link
Collaborator

Can we get the reasoning in the code comment too please?

@@ -361,6 +361,7 @@ captureSplicesAndDeps TypecheckHelpers{..} env k = do
#if MIN_VERSION_ghc(9,3,0)
-- TODO: support backpack
nodeKeyToInstalledModule :: NodeKey -> Maybe InstalledModule
nodeKeyToInstalledModule (NodeKey_Module (ModNodeKeyWithUid (GWIB mod IsBoot) uid)) = Nothing
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added.

Boot files in the finder cache can lead to uneccesary linking errors like
https://gitlab.haskell.org/ghc/ghc/-/issues/19816 when we actually have a
non-boot file in scope.
@wz1000
Copy link
Collaborator Author

wz1000 commented Jul 25, 2023

Can we get the reasoning in the code comment too please?

done

@wz1000 wz1000 added the merge me Label to trigger pull request merge label Jul 25, 2023
@mergify mergify bot merged commit 7a2b9a1 into master Jul 25, 2023
43 of 45 checks passed
@fendor fendor mentioned this pull request Aug 8, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants