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

Install depends-on without loading system #134

Open
fisxoj opened this issue Jun 15, 2016 · 3 comments
Open

Install depends-on without loading system #134

fisxoj opened this issue Jun 15, 2016 · 3 comments

Comments

@fisxoj
Copy link

fisxoj commented Jun 15, 2016

In the exciting, new world of docker, it's a good idea to cache intermediate steps of generating a disk image. In python, for example, that means copying the requirements.txt into the docker image and then running pip install -r requirements.txt to pull down the python modules needed.

For common lisp, it would be nice to be able to do the same thing. I can do this programmatically with

(ql:quickload (asdf:system-depends-on (asdf:find-system :mgl)))

if I wanted to load mgl's dependencies. It would be nice and convenient to do it with a single command, though!

One could imagine doing something like

(ql:quickload :mgl :dependencies-only t)

But I thought about that for all of three seconds and there's probably a better name.

@quicklisp
Copy link
Owner

You could do something like this:

(in-package :ql-dist-user)
(map nil 'ensure-installed (flatten (dependency-tree "mgl")))

It's not as terse as a new option to quickload, but it works today.

@fisxoj
Copy link
Author

fisxoj commented Jun 15, 2016

Neat! Is that better than the version with asdf in some way?

Feel free to mark as an enhancement or close as you like. It just seemed
like there might be a real use case for this, so I figured I'd ask.

On Wed, Jun 15, 2016, 3:31 PM Zach Beane notifications@github.com wrote:

You could do something like this:

(in-package :ql-dist-user)
(map nil 'ensure-installed (flatten (dependency-tree "mgl")))

It's not as terse as a new option to quickload, but it works today.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#134 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABdb2uWU5eA16lktaxRyVuetbhvLT4f3ks5qMFMpgaJpZM4I2iuq
.

@quicklisp
Copy link
Owner

In my experience, ASDF systems sometimes have implicit dependencies that only become apparent when loading them. Quicklisp's system database explicitly includes them.

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