a metacello problem

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

a metacello problem

EstebanLM
Hi,
There is a problem trying to load a configuration inside a configuration. I have a project who calls ConfigurationOfGoogleAnalytics project. Well, when installing the project standalone, it works fine. But when trying to install it inside this other project  it throws an error, because it is not finding a package "in the cache". I looks like it is ignoring the default repository defined in baseline.
Can this be a bug? or I'm doing something wrong?

cheers,
Esteban

I have this baseline:

baseline101: spec
        <version: '1.0.1-baseline'>

        spec for: #'common' do: [
                spec blessing: #baseline.
                spec author: 'EstebanLorenzano'.
                spec repository: 'http://www.squeaksource.com/gat'.
                 
                spec project: 'PetitParser' with: [
                        spec
                                className: 'ConfigurationOfPetitParser';
                                loads: #('Core');
                                repository: 'http://seaside.gemstone.com/ss/PortablePetitParser' ].
                spec
                        package: 'PetitXml' with: [
                                spec
                                        requires: #('PetitParser' );
                                        repository: 'http://seaside.gemstone.com/ss/PortablePetitParser' ];
                        package: 'PetitXPath' with: [
                                spec
                                        requires: #('PetitParser' 'PetitXml');
                                        repository: 'http://seaside.gemstone.com/ss/PortablePetitParser' ];
                        project: 'Zinc' with: [
                                spec
                                        className: 'ConfigurationOfZincHTTPComponents';
                                        repository: 'http://www.squeaksource.com/ZincHTTPComponents' ];
                        package: 'GoogleAnalyticsTracker-Core' with: [
                                spec requires: #('PetitParser' 'PetitXml' 'PetitXPath' 'Zinc') ];
                        package: 'GoogleAnalyticsTracker-Seaside' with: [
                                spec requires: #('GoogleAnalyticsTracker-Core' ) ] ].

with this version:

version102: spec
        <version: '1.0.2' imports: #('1.0.1-baseline' )>

        spec for: #'common' do: [
                spec blessing: #'development'.
                spec description: 'Using portable PetitParser'.
                spec author: 'EstebanLorenzano'.
                spec timestamp: '24 June 2011 9:38:20 am'.
                spec
                        project: 'PetitParser' with: '1.4';
                        project: 'Zinc' with: '1.0-baseline'.
                spec
                        package: 'PetitXml' with: 'PetitXml-EstebanLorenzano.33';
                        package: 'PetitXPath' with: 'PetitXPath-EstebanLorenzano.4';
                        package: 'GoogleAnalyticsTracker-Core'
                                with: 'GoogleAnalyticsTracker-Core-EstebanLorenzano.1';
                        package: 'GoogleAnalyticsTracker-Seaside'
                                with: 'GoogleAnalyticsTracker-Seaside-EstebanLorenzano.2' ].


Reply | Threaded
Open this post in threaded view
|

Re: a metacello problem

Dale Henrichs
Esteban,

Do you happen to be trying to load this into GemStone/GLASS? I think we recently saw some monticello packages that were created with the same UUID and that caused problems when equality tests were being performed between packages ... I think that it was the petitparse packages that were involved ...

Looking closer, this is probably in Pharo ... soooo, the first thing to look for is the Transcript log, if you could capture the transcript log and send it along, we can tell if Metacello is behaving correctly or if there is something else fishy going on ...

Dale

----- Original Message -----
| From: "Esteban Lorenzano" <[hidden email]>
| To: [hidden email]
| Sent: Monday, June 27, 2011 8:34:36 AM
| Subject: [Metacello] a metacello problem
|
| Hi,
| There is a problem trying to load a configuration inside a
| configuration. I have a project who calls
| ConfigurationOfGoogleAnalytics project. Well, when installing the
| project standalone, it works fine. But when trying to install it
| inside this other project  it throws an error, because it is not
| finding a package "in the cache". I looks like it is ignoring the
| default repository defined in baseline.
| Can this be a bug? or I'm doing something wrong?
|
| cheers,
| Esteban
|
| I have this baseline:
|
| baseline101: spec
| <version: '1.0.1-baseline'>
|
| spec for: #'common' do: [
| spec blessing: #baseline.
| spec author: 'EstebanLorenzano'.
| spec repository: 'http://www.squeaksource.com/gat'.
|  
| spec project: 'PetitParser' with: [
| spec
| className: 'ConfigurationOfPetitParser';
| loads: #('Core');
| repository: 'http://seaside.gemstone.com/ss/PortablePetitParser'
| ].
| spec
| package: 'PetitXml' with: [
| spec
| requires: #('PetitParser' );
| repository: 'http://seaside.gemstone.com/ss/PortablePetitParser'
| ];
| package: 'PetitXPath' with: [
| spec
| requires: #('PetitParser' 'PetitXml');
| repository: 'http://seaside.gemstone.com/ss/PortablePetitParser'
| ];
| project: 'Zinc' with: [
| spec
| className: 'ConfigurationOfZincHTTPComponents';
| repository: 'http://www.squeaksource.com/ZincHTTPComponents' ];
| package: 'GoogleAnalyticsTracker-Core' with: [
| spec requires: #('PetitParser' 'PetitXml' 'PetitXPath' 'Zinc') ];
| package: 'GoogleAnalyticsTracker-Seaside' with: [
| spec requires: #('GoogleAnalyticsTracker-Core' ) ] ].
|
| with this version:
|
| version102: spec
| <version: '1.0.2' imports: #('1.0.1-baseline' )>
|
| spec for: #'common' do: [
| spec blessing: #'development'.
| spec description: 'Using portable PetitParser'.
| spec author: 'EstebanLorenzano'.
| spec timestamp: '24 June 2011 9:38:20 am'.
| spec
| project: 'PetitParser' with: '1.4';
| project: 'Zinc' with: '1.0-baseline'.
| spec
| package: 'PetitXml' with: 'PetitXml-EstebanLorenzano.33';
| package: 'PetitXPath' with: 'PetitXPath-EstebanLorenzano.4';
| package: 'GoogleAnalyticsTracker-Core'
| with: 'GoogleAnalyticsTracker-Core-EstebanLorenzano.1';
| package: 'GoogleAnalyticsTracker-Seaside'
| with: 'GoogleAnalyticsTracker-Seaside-EstebanLorenzano.2' ].
|
|
|