Specifying a package version in a Configuration

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

Specifying a package version in a Configuration

Bernat Romagosa
Hi list!

How would one load a specific version of a dependence from within a configuration?

For instance, imagine I want to load Iliad from its Metacello config, but after that I want to load a more updated version of a specific package. Something like:

    spec 
        project: 'Iliad' with: '0.9.1.2';
        project: 'Iliad' package: 'Iliad-Core' with: 'Iliad-Core0.9.1.2-NicolasPetton.83'

I hope I made myself clear.

Thanks a lot!

Bernat.

--
Bernat Romagosa.
Reply | Threaded
Open this post in threaded view
|

Re: Specifying a package version in a Configuration

Mariano Martinez Peck



On Thu, Apr 11, 2013 at 7:46 AM, Bernat Romagosa <[hidden email]> wrote:
Hi list!

How would one load a specific version of a dependence from within a configuration?

For instance, imagine I want to load Iliad from its Metacello config, but after that I want to load a more updated version of a specific package. Something like:

    spec 
        project: 'Iliad' with: '0.9.1.2';
        project: 'Iliad' package: 'Iliad-Core' with: 'Iliad-Core0.9.1.2-NicolasPetton.83'


Don't know if it works but you can try defining the package in the baseline besides the project reference..something like

spec 
     package: 'Iliad-Core' with: [  spec repository: 'iliad repo here ...' ]

but I don't know what will happen because when you load the project Iliad it will load also the Iliad-Core of 0.9.1.2

btw, why not just create another/particular version of ConfigurationOfIliad for what you need?
 
I hope I made myself clear.

Thanks a lot!

Bernat.

--
Bernat Romagosa.



--
Mariano
http://marianopeck.wordpress.com
Reply | Threaded
Open this post in threaded view
|

Re: Specifying a package version in a Configuration

Bernat Romagosa
Hi Mariano!

Thing is Iliad is not the only project from which I need to load specific package versions, so creating all custom configurations would be quite a tiresome process.

I'll first try what Torsten proposed and come back to this solution in case I don't succeed.

Thanks a lot! :)


2013/4/11 Mariano Martinez Peck <[hidden email]>



On Thu, Apr 11, 2013 at 7:46 AM, Bernat Romagosa <[hidden email]> wrote:
Hi list!

How would one load a specific version of a dependence from within a configuration?

For instance, imagine I want to load Iliad from its Metacello config, but after that I want to load a more updated version of a specific package. Something like:

    spec 
        project: 'Iliad' with: '0.9.1.2';
        project: 'Iliad' package: 'Iliad-Core' with: 'Iliad-Core0.9.1.2-NicolasPetton.83'


Don't know if it works but you can try defining the package in the baseline besides the project reference..something like

spec 
     package: 'Iliad-Core' with: [  spec repository: 'iliad repo here ...' ]

but I don't know what will happen because when you load the project Iliad it will load also the Iliad-Core of 0.9.1.2

btw, why not just create another/particular version of ConfigurationOfIliad for what you need?
 
I hope I made myself clear.

Thanks a lot!

Bernat.

--
Bernat Romagosa.



--
Mariano
http://marianopeck.wordpress.com



--
Bernat Romagosa.