Login  Register

Re: How to make Metacello ignore package cache?

Posted by Dale Henrichs-3 on Apr 26, 2019; 6:11pm
URL: https://forum.world.st/How-to-make-Metacello-ignore-package-cache-tp5098647p5098648.html

I'm not exactly sure why you are getting the error, but the standard way
to deal with a package-cache issue (or at least eliminate the
package-cache as the real culprit) is to clear the package-cage in the
Monticello browser ...

An alternative (or next step) would be to try the following:

Metacello new
     configuration: 'MyConfig';
     repository: 'github://hernanmd/MyPackage/repository';
     get

the `get` forces a reload of ConfigurationOfMyConfig from the source
repository ...

If that doesn't work, please supply a complete Transcript of your
Metacello `get` episode, so that I can try to figure out what is going
wrong ...

Dale

On 4/26/19 10:40 AM, Hernán Morales Durand wrote:

> Hi guys,
>
> Is there any way to tell Metacello to ignore the local package cache
> after a failed load?
>
> Say I tried to load:
>
> Metacello new
>      configuration: 'MyConfig';
>      repository: 'github://hernanmd/MyPackage';
>      load.
>
> Then I figure the "repository" path is missing and I add it:
>
> Metacello new
>      configuration: 'MyConfig';
>      repository: 'github://hernanmd/MyPackage/repository';
>      load.
>
> And I get this exception: Could not resolve: ConfigurationOfMyConfig
> [ConfigurationOfMyConfig] in
> D:\Hernan\Pharo703\pharo-local\package-cache
> https://github.com/hernanmd/MyPackage.git[master]
>
> It doesn't matter if I use #onConflictUseIncoming or
>
> MetacelloPlatform current defaultPackageCache flushCache.
>
> I cannot find a way to specify to ignore the cache.
> Any ideas?
>
> Cheers,
>
> Hernán
>