Hi,

I had similar issues when using gitfiletree... and in the end I've ended up 
with this 
https://github.com/peteruhnak/pharo-scripts/blob/master/config/5.0/openponk-autoload.st

it is not the prettiest thing, however it is automated so I didn't bother 
improving it.


* automatically loads GitFileTree (I also load my own shell, because OSProcess 
was failing on me hard)
* "pre-loads" some dependencies so they point to my local git repositories 
instead of being pulled from github
        * if BaselineOf is available in the image, then MC loader will use that 
(instead of grabbing code from bitbucket/gitlab/github)
        * #onWarningLog is there to suppress warning about loading from 
different source (local instead of github), but avialble in transcript iirc
* startup script, so I could name the image certain way and it will prepare it 
for me
        * (obviously one can use it separately)
* used on windows and linux (that's why the platform checking)

Peter


On Fri, Jul 07, 2017 at 06:48:50AM -0700, Sabine Manaa wrote:
> Hi,
> 
> we have our own gitlab running now and I succeeded to move our code from
> sthub to it.
> I can push my new code into it from Pharo. All fine.
> I also created a Baseline (based on my former configurationOf).
> Loading the code from others (e.g. seaside) with this baseline is also fine.
> 
> There are 2 Points where I am sure it could be better (it is worse)
> 1) For loading my own code, I currently have a bad solution 
> It is in the postLoadBaseline and does this:
> 
>       | gitRepository |
>       gitRepository := MCFileTreeRepository new
>               directory:
> '/Applications/Pharo5.0-7.app/Contents/Resources/spf-gitlab/repository'
> asFileReference.
>       {'RKA24-Model' . 'RKA24-System' . 'RKA24-Translator' . 'RKA24-View' .
> 'RKA24-Test' . 'RKA24-Report' . 'RKA24-Overwrites'}
>               do: [ :each | 
>                       Gofer it
>                               repository: gitRepository;
>                               package: each;
>                               load ].
>               
> I would like to load it within my baseline like this below but I dont know
> what to write in the fileTreeRepository method...
>                       
> baseline: spec
>       <baseline>
>       spec
>               for: #common
>               do: [ spec blessing: #baseline.
>                       spec repository: ##self fileTreeRepository##.
>                       "here I load all the the oher stuff"
>                       spec
>                               package: 'RKA24-Model';
>                               package: 'RKA24-System';
>                               package: 'RKA24-Translator';
>                               package: 'RKA24-View';
>                               package: 'RKA24-Test';
>                               package: 'RKA24-Report';
>                               package: 'RKA24-Overwrites' ] 
> 
> 2) Also, when I take a new Image, I have to do several steps 
> 
> load gitfiletree from catalog
> add/open my gitfiletree repository from Monticello
> load BaselineOfRKA24 manually with 
> (BaselineOfRKA24   project map at: 'baseline') load
> 
> I think this is not the best way, I would like to make it right.
> 
> Can anyone give me some hints how to improve this two steps?
> I use Pharo 5 and I don't want to go to Pharo 6 right now.
> I develop on mac and production server is on windows.
> 
> Regards
> Sabine
>  
> 
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/2-questions-around-gitlab-gitfiletree-BaselineOf-tp4953877.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 

Reply via email to