<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Any ideas if this is a bug? Should work? Do I do it wrong? </blockquote><div><br></div><div>I'm not sure, since I'm not exactly sure what is going wrong, but it sounds like it could be a bug ... So I need to see the Transcript output for the 3(?) different scenarios:</div><div><ol><li> load and update</li><li>failed load of "change"</li><li>workaround for failed load of "change"</li></ol></div><div>it would also help if I saw the loadScript method...</div><div><br></div><div>Dale<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 20, 2023 at 3:16 AM Johan Brichau via Glass <<a href="mailto:glass@lists.gemtalksystems.com">glass@lists.gemtalksystems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
A Metacello question, but related to updated a git-based codebase in a GemStone repository:<br>
<br>
We are loading and updating our project using Metacello from a (local) filetree repository.<br>
The Metacello script is a class method `loadScript` implemented on the baseline class. So, we load and update our code (basically) using the following code in a topaz:<br>
<br>
        Metacello new<br>
                baseline:'Yesplan';<br>
                repository: 'filetree:///home/yesplan/localrepositories/Yesplan/smalltalk-src';<br>
                get.<br>
        BaselineOfYesplan loadScript.<br>
<br>
The `loadScript` is again a `Metacello new …` where all appropriate properties for loading are set (using the Metacello scripting API).<br>
We do a pull on the filetree repository outside of this script using bash scripts.<br>
<br>
This works well, except when we make a change to the `BaselineOfYesplan` baseline class… when we do this, the change is not loaded by the `get` command.<br>
Instead, the change to `BaselineOfYesplan` is only loaded as part of the `loadScript`. This is not desired because we want to use the version of the `BaselineOfYesplan` of the same commit to load that commit.<br>
<br>
The only way we can make this work is by adding a load step using Gofer before the `loadScript`:<br>
<br>
Gofer new<br>
    repository: (MCRepositoryGroup default repositories detect: [ :repository |repository description = 'filetree:///home/yesplan/localrepositories/Yesplan/smalltalk-src' ]);<br>
    package: 'BaselineOfYesplan';<br>
    load<br>
<br>
However, I was under the impression that `Metacello get` is supposed to load the updated `BaselineOf` ?<br>
I tried using a `flushCache` on the `MCFileTreeRepository` instance before the `Metacello get` but that did not change anything.<br>
<br>
Any ideas if this is a bug? Should work? Do I do it wrong? <br>
<br>
Thanks<br>
Johan<br>
_______________________________________________<br>
Glass mailing list<br>
<a href="mailto:Glass@lists.gemtalksystems.com" target="_blank">Glass@lists.gemtalksystems.com</a><br>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/glass" rel="noreferrer" target="_blank">https://lists.gemtalksystems.com/mailman/listinfo/glass</a><br>
</blockquote></div>