On mobile, apologies for brevity.

Your use case makes sense. I can think of two workarounds.

1. Allow an explicit opt in to say "allow file paths, I know what I'm doing"

2. Support local tarballs, especially if we include a sha256 of the tarball
contents (a feature I'm planning to add next week)

On Sat, Jul 15, 2017, 9:16 PM Jan von Löwenstein <jan.loewenst...@gmail.com>
wrote:

> Hi,
>
> I was excited to read the blog post about this new feature but was
> disappointed that exactly my main use case for it was explicitly blocked.
>
> I get the argument about snapshots being supposed to be immutable.
> However, I need to ship the code and dependencies over to the customers
> side for compliation without internet access. Right now my approach is to
> `stack build --prefetch --dry-run` and tar up the resulting STACK_ROOT. On
> customer side I can create a STACK_ROOT and compile without connection.
> Unfortunately, the tarball is bigger than I'd like. I hoped to build an
> immutable - yet local path based - custom snapshot that is about the size
> the dependencies I really have.
>
> Given this use case, would you reconsider if local paths could be allowed?
> I imagine this is technically easy, you just don't advise having mutable
> snapshots. I would happily take the responsibility for making sure my
> snapshots are immutable.
>
> I hope my use case is clearly stated and gets at least some consideration.
> If you have any further questions or advice how to achieve the same without
> local paths in custom snapshots that would be appreciated as well.
>
> Best regards
> Jan
>
> --
> 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 haskell-stack+unsubscr...@googlegroups.com.
> To post to this group, send email to haskell-stack@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/haskell-stack/16b16642-2997-466a-b7ef-cfe509260bae%40googlegroups.com
> .
> 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 haskell-stack+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-stack@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAKA2JgLsw33mC43koeSMXo9a74RssmG5CSOvyj%2BddU0dEnH1qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to