Le 13/11/2014 18:21, Rafael Luque a écrit :
Hi all,

I'm starting with Pharo and playing with the ways to integrate it with Git.

I've read the "Git and Pharo" chapter on "Enterprise Pharo" book by
Thierry Goubier and loaded the GitFileTree package.

I'm working on a project with several microservices, one of them will be
based on Pharo and the other ones in other technologies. The project
repository is based in our own Git server and each microservice maps
with one subdirectory in the repo.

My question is if it is possible to define a Metacello configuration to
load my packages from an specific subdirectory of a Git repository. I
have tried with the following baseline method, but it fails because does
not understand repoPath:

Yes, it is possible to fix a specific subdirectory, with a gitfiletree: url, via a dir=aRelativePath.

baseline01: spec
        <version: '0.1-baseline'>
        spec
                for: #common
                do: [
 spec blessing: #baseline.
spec repository: 'gitfiletree://my-git-server/my-project&dir=my-pharo-subdirectory'.
 spec
   package: 'MyPackage'.
                          . . . ]

You can have a look at the ConfigurationOfAltBrowser in the configuration browser to see how it triggers downloading the GitFileTree support.

Thierry

baseline01: spec
<version: '0.1-baseline'>
spec
for: #common
do: [
spec blessing: #baseline.
spec repository: 'git@my-git-server:my-project'.
                         spec repoPath: 'my-pharo-subdirectory'.
spec
package: 'MyPackage'.
                         . . . ]

Thank you in advance.



Reply via email to