Specifying a package version in a Configuration

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

Specifying a package version in a Configuration

Torsten Bergmann
Dont know if there is something by default. But you may be able to use a #postLoadDoIt
to be called when loading is finished (your project and dependencies) and then
use Gofer to update the dependency to the latest packages. Something like:


        spec for: #'common' do: [
               "postload"
                spec postLoadDoIt: #postloadForCore:package:.
                ...
        ]


And then in the postload method:

 postloadForCore: loader package: packageSpec
      Transcript show: 'This is called after loading and we use Gofer to update some packages'.
      Gofer loadWhatever ...

But maybe this is too late for you in the loading process. Dont know if one
can specify a postload for a dependency.

bye
T.

Reply | Threaded
Open this post in threaded view
|

Re: Specifying a package version in a Configuration

Bernat Romagosa
Thanks a lot! I finally managed :)


2013/4/11 Torsten Bergmann <[hidden email]>
Dont know if there is something by default. But you may be able to use a #postLoadDoIt
to be called when loading is finished (your project and dependencies) and then
use Gofer to update the dependency to the latest packages. Something like:


        spec for: #'common' do: [
               "postload"
                spec postLoadDoIt: #postloadForCore:package:.
                ...
        ]


And then in the postload method:

 postloadForCore: loader package: packageSpec
      Transcript show: 'This is called after loading and we use Gofer to update some packages'.
      Gofer loadWhatever ...

But maybe this is too late for you in the loading process. Dont know if one
can specify a postload for a dependency.

bye
T.




--
Bernat Romagosa.