how to update monticello cypress repository downloaded from github?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how to update monticello cypress repository downloaded from github?

Peter Uhnak
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
Reply | Threaded
Open this post in threaded view
|

Re: how to update monticello cypress repository downloaded from github?

Nicolas Passerini
AFAIK that is the only way

1. delete github-cache folder in the image folder
2. unload all the loaded packages
3. execute this script again

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.
Reply | Threaded
Open this post in threaded view
|

Re: how to update monticello cypress repository downloaded from github?

Dale Henrichs-3
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?
>
Reloading the baseline using the #get message will cause a fresh
download from github, so the following should do the trick:

   Metacello new
     baseline: 'FileDialog';
     repository: 'github://peteruhnak/file-dialog/repository';
     get;
     load.

Dale


Reply | Threaded
Open this post in threaded view
|

Re: how to update monticello cypress repository downloaded from github?

Peter Uhnak
  Metacello new
    baseline: 'FileDialog';
    repository: 'github://peteruhnak/file-dialog/repository';
    get;
    load.

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
Reply | Threaded
Open this post in threaded view
|

Re: how to update monticello cypress repository downloaded from github?

Nicolas Passerini
It happens the same to me.

On Sun, Jul 17, 2016 at 4:37 PM, Peter Uhnák <[hidden email]> wrote:
  Metacello new
    baseline: 'FileDialog';
    repository: 'github://peteruhnak/file-dialog/repository';
    get;
    load.

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

Reply | Threaded
Open this post in threaded view
|

Re: how to update monticello cypress repository downloaded from github?

Dale Henrichs-3
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:
It happens the same to me.

On Sun, Jul 17, 2016 at 4:37 PM, Peter Uhnák <[hidden email]> wrote:
  Metacello new
    baseline: 'FileDialog';
    repository: 'github://peteruhnak/file-dialog/repository';
    get;
    load.

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