Login  Register

How to make Metacello ignore package cache?

Posted by hernanmd on Apr 26, 2019; 5:40pm
URL: https://forum.world.st/How-to-make-Metacello-ignore-package-cache-tp5098647.html

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