Login  Register

Re: Sample metacello configuration referencing a github project?

Posted by Johan Brichau-3 on Feb 20, 2013; 10:00pm
URL: https://forum.world.st/Sample-metacello-configuration-referencing-a-github-project-tp4671054p4671131.html

I guess I'm using this mailinglist as my rubber duck [1] :-)

First off, it seems the load problem was because I was using #'gs2.4' instead of #'gs2.4.x' to identify the Gemstone section. Once I corrected that, the load proceeded.

Unfortunately, the load is not (yet) correct. Some Zinc packages of the Gemstone version mentioned in the ConfigurationOfZincHTTPComponents configuration (for Zinc 1.1) are still getting loaded. They are: Zinc-GemStone and Zinc-GemStonePreliminaries. The Zinc-HTTP package is getting loaded from github correctly.

These packages were also loaded before the load but I unloaded them before loading the new Zinc version.

[1] http://en.wikipedia.org/wiki/Rubber_duck_debugging

On Wednesday, February 20, 2013 10:11:36 PM UTC+1, Johan Brichau wrote:
I managed to get a little further and maybe the problem is more related to the fact that I need a different project spec for Pharo and Gemstone.
In the Pharo section, I can use the 'traditional' project spec:

spec 
project: 'ZincHTTP'
overrides: 
[ spec
className: 'ConfigurationOfZincHTTPComponents';
versionString: '1.7';
file: 'ConfigurationOfZincHTTPComponents';
loads: 'Core';

In the Gemstone section, I now include the following project spec to load the one from github:

"Zinc HTTP"
spec 
baseline: 'ZincHTTP'
with: 
[ spec
className: 'BaselineOfZinc';
loads: 'Core';
repository: 'github://glassdb/zinc:gemstone2.4/repository'].
]

In the common section, I merely mention:

spec project: 'ZincHTTP'.

Because otherwise, I get a 'name not found' when trying to load. However, this also leads to an error trying to load:

No method was found for the selector #'ensureLoadUsing:' when sent
to nil with arguments contained in anArray( aMetacelloFetchingMCSpecLoader(linea
r load : 
explicit load : 1.7.1-baseline [ConfigurationOfNextPlan]
explicit load : 1.7.1-baseline [ConfigurationOfNextPlan]
explicit load : 1.7.1-baseline [ConfigurationOfNextPlan]
explicit load : 1.7.1-baseline [ConfigurationOfNextPlan])).

Furthermore, if I include the complete project spec for Pharo in the common section, Metacello tries to load that version in gemstone in spite of the specific Gemstone section.

Any ideas what I might be doing wrong?

thanks
Johan

On Wednesday, February 20, 2013 5:57:06 PM UTC+1, Johan Brichau wrote:
Hi there,

I am trying to include the Zinc project on Github in our Metacello configuration.
However, I'm getting errors probably because I'm not sure how to include a project reference to github inside my metacello conf.

For example:

spec 
project: 'ZincHTTP'
with:: 
[ spec
loads: 'Core';
version: #stable;
file: 'BaselineOfZinc';
repository: 'github://glassdb/zinc:gemstone2.4/repository'].

Are there existing configurations that I can take a look at to know how to reference a project on github?

thanks
Johan

--
You received this message because you are subscribed to the Google Groups "Metacello" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.