Skip to content
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

Feature request: Offline installs #139

Open
felixSchl opened this issue Nov 15, 2018 · 4 comments
Open

Feature request: Offline installs #139

felixSchl opened this issue Nov 15, 2018 · 4 comments

Comments

@felixSchl
Copy link

It would be nice if I could install packages from local cache, similar to what bower i -o provided

@justinwoo
Copy link
Collaborator

You could instead use https://github.com/justinwoo/psc-package2nix to work with stores of packages

@felixSchl
Copy link
Author

I think a out-of-the-box solution would be preferable and should not add a tremendous amount of complexity. I'd be happy to try and contribute a patch if we can agree on something. To iterate the motivation a little: I happen to work without access to the internet from time to time and not being able to install essentially means I cannot do any work on anything that requires packages to be installed. Since package sets are immutable (in spirit only) we should be able to cache packages locally on disk somewhere, indexed by set and version.

@justinwoo
Copy link
Collaborator

Just another stray comment to add, since @damncabbage asked a long time ago a similar question:

One easy solution I had at one point was to create an acme project requiring everything in the universe: https://github.com/justinwoo/acme-spacchetti

The end result of installing literally everything in Spacchetti is still 85MB, then I sometimes copied over my .psc-package folder to various other projects.

It's not perfect, but it's there. Worth revisiting a small explanation of how Psc-Package works for people who want to know how this works: https://spacchetti.readthedocs.io/en/latest/intro.html

@justinwoo
Copy link
Collaborator

I think a solution here might be to just replicate the behavior I described in the comment but with explicit arguments on where an offline copy should be downloaded, without changing the behavior of existing commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants