Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pharo Gofer, can it fallback to local package cache when offline?

Can I tell Gofer to fall back to the local package cache when no internet is available?

For example such that I can use

Gofer it
    squeaksource: 'CodePhoo';
    addPackage: 'CodePhoo';
    load

to setup an image when offline on the train? (In that case we can be sure that the packages are in fact available locally from a previous image setup.)

like image 885
akuhn Avatar asked Nov 27 '09 19:11

akuhn


1 Answers

Theoretically yes, the model of Gofer would support such things.

Practically no, because of missing support from the Monticello side.

Even though Monticello provides a MCRepositoryGroup, this code unfortunately throws all kinds of different errors when one of the repositories is not reachable. That probably makes sense in the context of the Monticello tools, but for Gofer that would need to be reimplemented.

like image 122
Lukas Renggli Avatar answered Sep 30 '22 14:09

Lukas Renggli