Skip to content

Do correct path checking in precompiled cache. #3494

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

Merged
merged 2 commits into from
Oct 18, 2017

Conversation

snoyberg
Copy link
Contributor

The commit ed9ccc0 changed the behavior
of the precompiled cache to store relative instead of absolute paths.
That seems to have broken the ability to properly check if a library
exists, thereby defeating precompiled caching.

The issue that discovered this is #3431, and ascribed this to extensible
snapshots. I think, though I'm not 100% certain, that this bug reaches
much farther than extensible snapshots, and in fact breaks all
precompiled caches.

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 Oct 17, 2017

LGTM

The commit ed9ccc0 changed the behavior
of the precompiled cache to store relative instead of absolute paths.
That seems to have broken the ability to properly check if a library
exists, thereby defeating precompiled caching.

The issue that discovered this is #3431, and ascribed this to extensible
snapshots. I _think_, though I'm not 100% certain, that this bug reaches
much farther than extensible snapshots, and in fact breaks all
precompiled caches.
@snoyberg snoyberg force-pushed the 3431-fix-precompiled-cache-checks branch from 94c3839 to 7b5bfbc Compare October 18, 2017 09:10
@snoyberg
Copy link
Contributor Author

Thanks! I've added an integration test for this as well. Once I get the green from Travis, I'll merge. (Or if someone gets to it before me, that's great too.)

@snoyberg snoyberg merged commit 13a7d4b into master Oct 18, 2017
@snoyberg snoyberg deleted the 3431-fix-precompiled-cache-checks branch October 18, 2017 09:59
@dbaynard
Copy link
Contributor

One and a half laptops later, I can confirm this fixes the sharing issue in #3431.

@dbaynard
Copy link
Contributor

dbaynard commented Aug 10, 2018

I'm seeing a regression on this — including on master. I'm going to check the minimum example & integration test later today.

@dbaynard
Copy link
Contributor

Yeah, integration test failing on master and 8.4.3 (the test needs stm updating to 2.4.5.0 and then it fails properly)

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.

3 participants