New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acquire packages from the local file system, instead of a remote http server? #3106

Open
talw opened this Issue Apr 5, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@talw

talw commented Apr 5, 2017

How difficult would it be to add a feature for stack to be able to install packages from a local mirror or a subset of an LTS, without using an http server, but directly getting the resources from the local file system.

The use case is thus:
In my company, the modus operandi is that we have a prerequisites installation, that sets up a workstation with an appropriate environment with everything a developer needs to get working.
We would like to use stack, but we prefer to avoid the added complexity of either running another http server in our network to serve the haskell packages behind the firewall, ala: #2567, as well as avoid the need to use an http server locally on the workstation just to serve files that reside locally anyway.

This could be somewhat similar to #359, only that the cached downloads will be prepared on a different machine than the one that will use them.

I'm currently looking at the source code but it is difficult to get a ballpark estimate in a short amount of time for me, as I don't have prior experience with the codebase.

If it so happens that it isn't a big modification, me or someone else in my company will be more than happy to implement it and submit a PR.

@mgsloan

This comment has been minimized.

Collaborator

mgsloan commented Apr 8, 2017

https://github.com/cblp/stack-offline might be helpful here.

PRs certainly appreciated, though not sure how big the change would be.

@mgsloan mgsloan added this to the P2: Should milestone Apr 8, 2017

@talw

This comment has been minimized.

talw commented Apr 26, 2017

Yes, I've consulted that link.
Thanks!

@borsboom

This comment has been minimized.

Contributor

borsboom commented Mar 20, 2018

Potential approach: #3813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment