[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-29 Thread Emilio Oca
Hey, Breaking the ice, by following the logic behind 'Pull' button at 'Working copy of..." from iceberg repo UI, I found I can put this: aRemote := IceGitRemote name: 'origin' url: ' https://github.com/User/MyProject.git'. aRemote localRepository: (IceRepository registry detect: [ :each | each in

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-29 Thread Dale Henrichs
Emilio, Okay ... we're peeling the onion :) ... At this point it sounds like you need to do a flushCache on your filetree repository in order to force Metacello to re-download from the github into the local package-cache. But if Iceberg is involved, I am not the person to ask ... I am not famili

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-29 Thread Emilio Oca
Hi Dale Thanks again, still not working. After updating github I am unable to pull the changes into the image. So far the only way is to hit Pull button at the "Working copy of MyProyect" repo window. I wish I could reproduce what that button does. Even this: Metacello new repository: 'gi

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-28 Thread Dale Henrichs
Emilio, I wasn't quite sure whether or not you were concerned about having the BaselineOf refreshed or a reload of the packages managed by the BaselineOf and as Gabriel mentions, the missing #projectClass method is the most common problem ... By default Metacello does not refresh a BaselieOf in y

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-25 Thread Emilio Oca
Hi Gabriel, Dale! My BaselineOf had only #baseline: Added #projectClass But is still not working. It seems to be doing the load, but not the pull before the load. I had implemented no more than #baseLine: and now projectClass. If I go through the UI and do the pull it works perfectly. Can I repl

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-25 Thread Dale Henrichs
Emilio, Are you using a repository without Monticello meta data? If so, then you need to change the #projectClass of you your baseline to: > projectClass > Smalltalk at: #'MetacelloCypressBaselineProject' ifPresent: [ :cl | ^ cl > ]. > ^ super projectClass unless the #projectClass is Metace

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-25 Thread Gabriel Cotelli
Is your BaselineOf implementing: projectClass ^ MetacelloCypressBaselineProject ? AFAIR missing this method caused that kind of problem in the past. On Mon, Apr 25, 2022 at 6:30 PM Emilio Oca wrote: > Hi Esteban > > Thanks for the hint. > It is still not working. > Even if I remove BaselineOfM

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-25 Thread Esteban Lorenzano
mmm, you may be having another problem elsewhere, because what I typed should be working (is how we enforce the load of new versions to run the tests, for example). Esteban On Apr 25 2022, at 11:30 pm, Emilio Oca wrote: > Hi Esteban > > Thanks for the hint. > It is still not working. > Even if

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-25 Thread Emilio Oca
Hi Esteban Thanks for the hint. It is still not working. Even if I remove BaselineOfMyProject and MyProject. When it reloads, it doesn't loads the last version of head at github but the one that was already at the image. I just want to update up to what is at gibhub head. Is there another way? B

[Pharo-users] Re: Loading from a git repository with Metacello on a running seaside image

2022-04-22 Thread Esteban Lorenzano
Hi Emilio, You need something like this: Metacello new repository: 'github://pharo-spec/Spec:Pharo10'; baseline: 'Spec2'; onConflict: [ :e | e useIncoming ]; onUpgrade: [ :e | e useIncoming ]; ignoreImage; load ignoreImage, onConflict, onUpgrade. BUT if your image already has a baseline for your