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

Duplicate Copies of GHC #18

Closed
StevenXL opened this issue May 31, 2020 · 3 comments
Closed

Duplicate Copies of GHC #18

StevenXL opened this issue May 31, 2020 · 3 comments

Comments

@StevenXL
Copy link

StevenXL commented May 31, 2020

Hi Folks,

I apologize if this is either not the right forum for this question, or if the problem is due to user error.

However, I have installed asdf-vm and asdf-haskell, and I have installed ghc-8.6.5 by running asdf install haskell 8.6.5. I believe the install went fine. I went into my ~/.asdf/installs/haskell, and could see the 8.6.5 folder in there. I used stack install hlint and I could see that which hlint point to an asdf shim; and did which stack also pointed to an asdf shim. All of this is to say that asdf-vm and asdf-haskell seemed to have been installed properly.

However, when I go into a project that uses the lts-14.7 (which, in turn, uses ghc 8.6.5), and I run stack test, then the same ghc version is downloaded again into a ~/.stack folder.

Is my configuration wrong? Shouldn't it be using the ghc already in ~/.asdf?

@StevenXL
Copy link
Author

I'm guessing one way to integrate this is to use the STACK_ROOT environmental variable as described here (and more background info here). Should I add this to the documentation?

@vic
Copy link
Member

vic commented May 31, 2020

Looks like we should be exporting that variable from a bin/exec-env.

If anyone is willing to submit a PR, it would be more than welcome.

Here's a link to the documentation:
https://asdf-vm.com/#/plugins-create?id=binexec-env

@StevenXL
Copy link
Author

StevenXL commented Jun 4, 2020

@vic it looks like this started happening when I switched from version 2.1.3 of stack to 2.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants