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

Get LocalBuildInfo in pre-test hook #2599

Closed
pikajude opened this issue May 19, 2015 · 2 comments
Closed

Get LocalBuildInfo in pre-test hook #2599

pikajude opened this issue May 19, 2015 · 2 comments

Comments

@pikajude
Copy link

I've asked in #haskell and nobody seems to know the answer to this. What's the right way to get the current LocalBuildInfo in the preTest hook?

@23Skidoo
Copy link
Member

/cc @dcoutts

@ezyang
Copy link
Contributor

ezyang commented Jul 22, 2016

There doesn't seem to be a state-sponsored way. But you can connive to get it yourself using getBuildConfig. You'll need to have your overridden UserHooks ready, as well as the dist location from testDistPref. If it breaks, you get to keep all the pieces.

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

3 participants