[Glass] Another metacello loading puzzle: xml

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Tue Dec 26 09:38:35 PST 2017

Well I think that if you want to avoid hitting the network all of the 
time, then you do a separate fetch into the cacheRepository[1] and then 
when you are doing a load, you use repositoryOverrides[2]. The links are 
broken in the urls below but the code is and explanations are still 
valid ...


On 12/23/17 2:12 AM, Iwan Vosloo via Glass wrote:
> Hi Dale,
> On 23/12/2017 00:11, Dale Henrichs via Glass wrote:
>>> We fetch what we need once, and keep it thereafter locally (in the 
>>> cache repository) so that we don't need to keep hitting the network 
>>> during CI builds etc.
> >
>> okay ... perhaps the fetch fails when attempting to download the xml 
>> files? There shouldn't be anything special about he xml project to 
>> make it fail, unless you haven't pre-fetched the XML mcz files ///
> Do you mean I should always first do :
> Metacello new
>   ....
>   cacheDirectory: '...';
>   fetch: 'ALL'.
> And THEN only a load: 'ALL'?
> I was under the impression doing just a load would fetch, thus 
> populate the cache and then load; and on subsequent loads of the same 
> thing would hit the cache. And indeed if I clean the cache out, and 
> then just do a load I see that happening.
> Thanks
> Iwan
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

More information about the Glass mailing list