[Glass] SIXX load conflict

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Thu Dec 18 04:24:53 PST 2014


On Thu, Dec 18, 2014 at 8:10 AM, Dario Trussardi via Glass <
glass at lists.gemtalksystems.com> wrote:
>
> I load SIXX support into GLASS 3.1.0.6 with the command:
>
> Metacello new
>     baseline: 'SIXX';
>     repository: 'github://glassdb/SIXX:master/repository';
>     load.
>
> The system answer :
>
> a Halt occurred (error 2709), Debugging: Warning: LOCK ENFORCED: Attempt
> to 'load with conflicts' new project: 'ConfigurationOfGrease 1.0.3 from
> http://www.squeaksource.com/MetacelloRepository' when existing project:
> 'BaselineOfGrease [baseline] from
> github://GsDevKit/Grease:master/repository' is locked. New project not
> loaded. Use #onLock: to intercept. -  G/S[Scandella3106:2]
>
>
I think I had the same issues.

The most robust way I found to load code is the following. For your
concrete problem, I think the key line is " onLock: [:ex | ex honor];"  but
maybe you want to adapt all that code:

[ [ [ [


 Metacello image
         configuration: 'XXX';
         version: YYY;
  onLock: [:ex | ex honor];
         load: #(ZZZ).

 ]
    on: MetacelloAllowConflictingProjectUpgrade
    do: [ :ex | ex defaultAction ] ]
    on: MetacelloAllowLockedProjectChange
    do: [ :ex | ex disallow ] ]
    on: MetacelloNameNotDefinedError
    do: [ :ex | ex resume ]]
    on: Warning
do: [ :ex | ex resume ].

The only discussion here is to resume upon all warning. This may not be
good for all cases. Sometimes the warnings are important.
I think I will remove that from mine....

Best,



>
> I do some       proced  commands.
>
> At he end the system answer:
>
>         linear load :
>         linear load : baseline [BaselineOfSIXX]
>                 linear load : 1.1.8 [ConfigurationOfXMLSupport]
>                         linear load : baseline [BaselineOfGrease]
>                                 atomic load : 0.243 [ConfigurationOfGsMisc]
>                                         linear load : 1.1.8
> [ConfigurationOfXMLSupport]
>                 load : SIXX.310-dkh.183
>
>
> I can consider correct the loading?
>
>
> Thanks,
>
>                 Dario
>
> P.S. The GLASS 3.1.06 is create with development kit    createTodeStone
>  command
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20141218/42812d4c/attachment.html>


More information about the Glass mailing list