Hi again!
I tried your commit that skips downloading if file is present and it works.
However, imho this is still a suboptimal solution.
This is what I came up with. A script that downloads every url from stack
setup
yaml and all packages from hackage index. Here is the repository:
The fact that you can't do "stack new" is known, and raised at
https://github.com/commercialhaskell/stack/issues/2804.
Note that the http-redirect tool I wrote _always_ goes to the
internet, it never serves up mirrored content. If you want to run on a
server which doesn't have internet access
Yes I did.
*Server side*
$ env | grep STACK_ROOT
STACK_ROOT=/data/srv/stack_root
$ pwd
/data/srv
$ ls
http-redirect mirror stack_root
$ stack path | grep config
config-location: /data/srv/stack_root/global-project/stack.yaml
$ cat /data/srv/stack_root/config.yaml
urls:
latest-snapshot:
Please, can you describe all operations in detail. Not sure if google
groups is a good place for this though.
The whole idea of using haskell with stack/cabal *offline* is crucial for
work at many companies.
First of all it's not clear how to obtain all the data needed for stack and
cabal to
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