Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Can't build specific hie version -- forces nightly resolver #1099

Closed
pablox-cl opened this issue Feb 21, 2019 · 4 comments
Closed

Can't build specific hie version -- forces nightly resolver #1099

pablox-cl opened this issue Feb 21, 2019 · 4 comments
Milestone

Comments

@pablox-cl
Copy link

I was trying to build a specific version as said in the documentation:

$ make hie-8.4.3
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-tinfo6-8.6.3 ...

But it starts downloading, 8.6.3. This happens even when calling make help:

❯ make help
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-tinfo6-8.6.3 ...

I barely understand Makefiles, but trying to make any modification it still tried to download 8.6.3, so I don't understand why this is happening.

@pablox-cl
Copy link
Author

Ok, I made an advance, sorry, problem is with lines 2 and 18 (stack path --local-bin). This happens because when those variables are being assigned, the stack.yaml is being used. Replacing the resolver there allows the Makefile to continue.

I'm not sure, but I'm guessing this should be considered as a bug.

@pablox-cl pablox-cl changed the title Can't build hie -- forces nightly resolver Can't build specific hie version -- forces nightly resolver Feb 21, 2019
@fendor
Copy link
Collaborator

fendor commented Feb 22, 2019

The fix would be to use --stack-yaml shake.yaml in addition to stack path - -local-bin
If I remember correctly, this will be fixed when #1092 has been merged.

@lukel97
Copy link
Collaborator

lukel97 commented Feb 25, 2019

I presume this will go away in #1033?

@fendor
Copy link
Collaborator

fendor commented Mar 1, 2019

stack install.hs hie-8.4.3 should no longer download a nightly resolver
however, there still will be two resolvers, one for install.hs and one to install the specific hie version
reopen if installation still forces a nightly resolver

@fendor fendor closed this as completed Mar 1, 2019
@alanz alanz added this to the prehistory milestone Apr 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants