Since I had such difficulty with this option, I tried on a fresh virtual machine, trying to go the full route to a working stack installation using only a localhost mirroring server with the network disabled. I didn't get very far, and managed to totally confuse myself. There are two essential files, config.yaml (stored in STACK_ROOT) and setup-info.yaml (passed on the command line or in the stack.yaml file). I think it would be a reasonable design decision to merge them, and I've raised a ticket for that at https://github.com/commercialhaskell/stack/issues/2982.
I would suggest the restriction you mention in large commercial organisations, and Stack could certainly be better set up for it. Thanks, Neil On Sat, Feb 4, 2017 at 1:06 PM, David Sicilia <[email protected]> wrote: > Hi Neil, > Thanks very much for the reply, I'll take a look at what you have suggested > below! > David > > On Saturday, January 21, 2017 at 11:27:22 AM UTC-5, David Sicilia wrote: >> >> Hi there, >> >> >> I am behind a firewall with strict rules about downloading software from >> the internet, >> >> so I would like to know if it is possible to download an entire stackage >> LTS snapshot >> >> in one go and then serve it on a local server, to which we could then >> point the stack tool. >> >> >> By "snapshot" I would be referring to the source code for all packages >> because >> >> we'd need to draw from that local server to build on both Linux and >> Windows. >> >> >> For example, perhaps we'd be able to go to a server within the firewall >> and run >> >> "stack new", then edit the yaml file to point it to a local stackage >> server with given >> >> resolver number, then it would just behave normally from then on, except >> always >> >> downloading packages from the local server. >> >> >> What about compilers? I know that stack also downloads the compilers, so I >> guess >> >> those would have to be included in the downloaded snapshot-package for >> various >> >> platforms? >> >> >> Any guidance would be appreciated, because we will not be able to make use >> of >> >> stack/stackage without something like this! >> >> >> Thank you >> >> David > > -- > 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/cf1530fe-ff7b-4a5a-ae6a-0e3e5d2251b1%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 [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/CAKcFpmLW2xvT_Hd5KmWVbP8qXF-L16BEbot6Fw2cg7K%3D9x4A8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
