[Pharo-project] ConfigurationOf
Hi, I build the ConfigurationOf for my current project and it works fine, but I have some doubts. My project has dependencies on two other projects, namely Spy and Fuel. In my ConfigurationOf I'm loading these two projects before fetching my code. The point is that, for example, I'm loading Fuel even if it is already loaded in the current image and the same for Spy. Could you help me in creating a ConfigurationOf which only loads those projects if not already in the image and eventually only updates them to the last version? Thanks in advance, R P.s. Here (http://ws.stfx.eu/QOMGC86FZTG) is my current baseline for the ConfigurationOf.
Hey Roberto, AFAIK, it should not load a new version of Fuel. Is it? Your spec should be equivalent to evaluating the following: Gofer it squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfFuel'; load. (ConfigurationOfFuel project version: #stable) load. which in my 2.0 image doesn't load anything but the ConfiguurationOfFuel. Cheers, Martin On Fri, Apr 5, 2013 at 11:58 AM, roberto.minelli@usi.ch <roberto.minelli@usi.ch> wrote:
Hi,
I build the ConfigurationOf for my current project and it works fine, but I have some doubts. My project has dependencies on two other projects, namely Spy and Fuel. In my ConfigurationOf I'm loading these two projects before fetching my code.
The point is that, for example, I'm loading Fuel even if it is already loaded in the current image and the same for Spy.
Could you help me in creating a ConfigurationOf which only loads those projects if not already in the image and eventually only updates them to the last version?
Thanks in advance, R
P.s. Here (http://ws.stfx.eu/QOMGC86FZTG) is my current baseline for the ConfigurationOf.
Depends a bit on which platforms you want it to run, and like Martin says, you should be ok. For removing it you have two options 1) remove the projects for pharo2.0 like this: spec for: #'pharo2.x' do:[ spec removeProject: 'Spy'; removeProject: 'Fuel'. ] this should (if I remember correctly) also remove your dependencies on them. Of course, this should follow all references to this. Alternative is that you do it positive, saying: spec for: #( #'squeak' #'pharo1.x' ) do: [ ⦠] Regards, Diego On Apr 5, 2013, at 11:58 AM, roberto.minelli@usi.ch wrote:
Hi,
I build the ConfigurationOf for my current project and it works fine, but I have some doubts. My project has dependencies on two other projects, namely Spy and Fuel. In my ConfigurationOf I'm loading these two projects before fetching my code.
The point is that, for example, I'm loading Fuel even if it is already loaded in the current image and the same for Spy.
Could you help me in creating a ConfigurationOf which only loads those projects if not already in the image and eventually only updates them to the last version?
Thanks in advance, R
P.s. Here (http://ws.stfx.eu/QOMGC86FZTG) is my current baseline for the ConfigurationOf.
Thanks Martin and Diego for your answers! On Apr 5, 2013, at 1:30 PM, Diego Lont <diego.lont@delware.nl> wrote:
Depends a bit on which platforms you want it to run, and like Martin says, you should be ok. For removing it you have two options
1) remove the projects for pharo2.0 like this:
spec for: #'pharo2.x' do:[
spec removeProject: 'Spy'; removeProject: 'Fuel'. ]
this should (if I remember correctly) also remove your dependencies on them. Of course, this should follow all references to this.
Alternative is that you do it positive, saying:
spec for: #( #'squeak' #'pharo1.x' ) do: [ ⦠]
Regards, Diego
On Apr 5, 2013, at 11:58 AM, roberto.minelli@usi.ch wrote:
Hi,
I build the ConfigurationOf for my current project and it works fine, but I have some doubts. My project has dependencies on two other projects, namely Spy and Fuel. In my ConfigurationOf I'm loading these two projects before fetching my code.
The point is that, for example, I'm loading Fuel even if it is already loaded in the current image and the same for Spy.
Could you help me in creating a ConfigurationOf which only loads those projects if not already in the image and eventually only updates them to the last version?
Thanks in advance, R
P.s. Here (http://ws.stfx.eu/QOMGC86FZTG) is my current baseline for the ConfigurationOf.
On Apr 5, 2013, at 11:58 AM, roberto.minelli@usi.ch wrote:
Hi,
I build the ConfigurationOf for my current project and it works fine, but I have some doubts. My project has dependencies on two other projects, namely Spy and Fuel. In my ConfigurationOf I'm loading these two projects before fetching my code.
The point is that, for example, I'm loading Fuel even if it is already loaded in the current image and the same for Spy.
Could you help me in creating a ConfigurationOf which only loads those projects if not already in the image and eventually only updates them to the last version?
this is the default behavior of metacello so I do not understand what you mean. Did you read the metacello chapter I wrote?
Thanks in advance, R
P.s. Here (http://ws.stfx.eu/QOMGC86FZTG) is my current baseline for the ConfigurationOf.
On Apr 6, 2013, at 10:26 AM, stephane ducasse <stephane.ducasse@free.fr> wrote:
On Apr 5, 2013, at 11:58 AM, roberto.minelli@usi.ch wrote:
Hi,
I build the ConfigurationOf for my current project and it works fine, but I have some doubts. My project has dependencies on two other projects, namely Spy and Fuel. In my ConfigurationOf I'm loading these two projects before fetching my code.
The point is that, for example, I'm loading Fuel even if it is already loaded in the current image and the same for Spy.
Could you help me in creating a ConfigurationOf which only loads those projects if not already in the image and eventually only updates them to the last version?
this is the default behavior of metacello so I do not understand what you mean.
Good to know! Thanks.
Did you read the metacello chapter I wrote?
Thanks in advance, R
P.s. Here (http://ws.stfx.eu/QOMGC86FZTG) is my current baseline for the ConfigurationOf.
participants (4)
-
Diego Lont -
Martin Dias -
roberto.minelli@usi.ch -
stephane ducasse