What do you know about the behavior of the `compiler` flag?  When working 
with a non-ghc compiler (and not in the snapshot), what exactly is 
happening with the version check?

I've been wanting to do this as well... The simplest solution I can imagine 
is to escape Stack's desire to handle installation of the compiler, for 
example:

```
compiler: ghcjs
setup-info:
  ghcjs:
    manual: true
    path: /usr/bin/ghcjs
```

The main thing is he's trying to remaster the container, so there shouldn't 
be any dependence on the host or user that will use the container.  Another 
related idea is to allow manual specification a location for the snapshot 
dir, like:

```
snapshot-override:
- lts-7.0:
  /opt/stackage/lts-7/snapshot
```

That would allow easy remastering of the fpco containers by simply running 
a stack build for some big lib, at the expense of snapshot sharing on the 
host machine.  Actually, is there any way that Stack's model could be 
extended to allow sub-layering of snapshots? Well, even without it, I think 
the option to store your shared snapshot in the container would be very 
helpful.

Michael, actually my initial purpose for remastering was to create a yesod 
container!


On Thursday, September 22, 2016 at 12:19:01 AM UTC-7, Michael Snoyman wrote:
>
> My guess would be that, in your Dockerfile, you're setting this up as the 
> root user, inside a root-user-specific directory. But from `stack build`, 
> it's running it as your host system user, which doesn't have access to the 
> root home directory's files. Perhaps playing with the PATH would help, but 
> I'm not sure what the best approach is in this case to be honest.
>
> On Wed, Sep 21, 2016 at 11:44 AM, Casper Clemence <[email protected] 
> <javascript:>> wrote:
>
>> p.s.
>>
>> stack --version                                                         
>>                                               :(
>> Version 1.2.0 x86_64 hpack-0.14.0
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "haskell-stack" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/haskell-stack/0d692ef4-d81e-43e4-b8ed-a6a2233a190c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/haskell-stack/0d692ef4-d81e-43e4-b8ed-a6a2233a190c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/e0a0c15c-60db-4f8c-b611-a1a1115ca8a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to