krfkeith / metacello

Automatically exported from code.google.com/p/metacello
0 stars 0 forks source link

Version generated from a baseline can have empty package versions in a platform-specific section #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A version method generated from a baseline that mentions a package in both the 
#common and some platform-specific sections, will end-up with an empty package 
version in the platform-specific section of that version method.
This means that the most recent version of the package will get loaded for that 
platform, rather than the specific version mentioned in the common section. 
This leads to errors. The manual solution is to remove the statement from the 
platform-specific section of the generated method.

A baseline along the lines of:

baseline100: spec
   spec for: #common do:[
        spec package: 'A' ]

   spec for: #pharo do:[
         spec package: 'A' with:[ spec requires: #(Project) ] 
    ]

Will thus generate a version method like:

version103: spec 
   spec for: #common do:[
        spec package: 'A' with: 'A-Johan.1 ]

   spec for: #pharo do:[
         spec package: 'A' with: ''] 
    ]

Original issue reported on code.google.com by jo...@yesplan.be on 1 Sep 2012 at 2:53

Attachments:

GoogleCodeExporter commented 9 years ago
see https://github.com/dalehenrich/metacello-work/issues/115 for details

Original comment by henrichs...@gmail.com on 17 Sep 2012 at 9:33