Hi,
how can one update a cypress github repository? e.g. I install it like this Metacello new baseline: 'FileDialog'; repository: 'github://peteruhnak/file-dialog/repository'; load. And then later I want to pull latest changes as the repo itself doesn't contain commits I cannot do it from Monticello Browser. The only way I found was to 1. delete github-cache folder in the image folder 2. unload all the loaded packages 3. execute this script again This is really heavy-handed approach. Maybe the class BaselineOf could contain method #update or something like that that will automatically do this? Or is there a better way? Thanks, Peter |
AFAIK that is the only way
At least if you have a metadata less github repository, is that the case? But that was the conclusion to which we arrived with Dale a few weeks ago and he's changing stuff, so maybe in the latest version it is already solved. |
In reply to this post by Peter Uhnak
On 7/16/16 10:26 AM, Peter Uhnák wrote: > Hi, > > how can one update a cypress github repository? > > e.g. I install it like this > > Metacello new > baseline: 'FileDialog'; > repository: 'github://peteruhnak/file-dialog/repository'; > load. > > And then later I want to pull latest changes > > as the repo itself doesn't contain commits I cannot do it from > Monticello Browser. > > The only way I found was to > > 1. delete github-cache folder in the image folder > 2. unload all the loaded packages > 3. execute this script again > > This is really heavy-handed approach. > > Maybe the class BaselineOf could contain method #update or something > like that that will automatically do this? > > Or is there a better way? > download from github, so the following should do the trick: Metacello new baseline: 'FileDialog'; repository: 'github://peteruhnak/file-dialog/repository'; get; load. Dale |
Metacello new Using #get indeed downloads a fresh copy, however the code in Pharo is _not_ reloaded. Is this a bug? Or do I need to do yet something more to reload that too? Peter |
It happens the same to me. On Sun, Jul 17, 2016 at 4:37 PM, Peter Uhnák <[hidden email]> wrote:
|
Nicolas and Peter,
At this point, I assume that both of you using metadata-less GitFileTree repositories and you have the choice of either replacing the github:// scheme with a gitfiletree:// scheme so that GitFileTree is used to load the packages or using "the Cypress package extension" for Metacello which I've recently announced[1]. The down-side for both of these is that either GitFileTree and/or the latest version of Metacello has to be loaded into the users image and that may not be practical, since neither is included in the base release for Pharo .. The final option is to stop using metadata-less GitFileTree ... Dale [1] http://forum.world.st/ANN-Metacello-support-for-GitFileTree-metadata-less-mode-tt4906662.html On 07/17/2016 02:34 PM, Nicolas
Passerini wrote:
|
Free forum by Nabble | Edit this page |