Hi Dale,Yes but I am asking specifically how this link is specified ... in Metacello, you use repository descriptions to identify the source repository. I am curious how you specify these cross repository dependencies ... or do you even support cross-repository dependencies?
Le 11 oct. 2015 � 00:40, Dale Henrichs a �crit :
Christophe,
I still don't have a lot of time to read the paper and try to understand what you are trying to accomplish, but I am curious how you think "package dependencies" will play with git-based projects?
Dependencies are not tied to a Version Control System (monticello, git or whatever). Dependencies are a package concern.With a released version, at the end, we need to fech source code from a VCS (as we do not have a shared binary format): these steps are already done by MC*Repository classes, including git.
right and in Metacello the cross-repository specifications is handled by a project spec:
In git-based repositories I don't think you have the same type of dependency issues that one might have with monticello repositories --- In a monticello repository you have a whole range of possible package versions to pick from, but in a git-based repository the range of package versions is fixed to those that are committed together so the packages that are meant to work together are committed together.
Git allows you to easily reference a set of packages working together. It works fine for packages of the same repository but you get back the problem since you deal with packages of other repositories.
and how are project dependencies handled? It seems that the project dependencies are intimately tied to package dependencies as often the project dependency itself comes from a specific set of packages and needs to be specified at the package level ...
In the bootstrap scenario, you would only have one version per package to choose from, so the packages that are meant to work together are committed together ....
For the first step of the bootstrap, it will work but not for next steps where we will split the Pharo image into different projects.
This is a BaselineOf in Metacello ... and does exactly what you talk about here ...
I guess I don't know what you mean when you say:
we want to decouple a released version of a package from the working copy of the package version description (implies the creation of a package repository + a web interface on top of it to promote/search packages).Perhaps a description of the problem being solved would help me understand.
When you develop, you have a working copy of a package meta-data, including dependencies. Actually, there are current dependencies of the package. You could avoid to refer to specific versions and just point to the package name as your working image should already have packages loaded. (kind of configurationOf baseline)
As I've mentioned in another message, there is no reason other than a lack of tools that the Metacello specifications (ConfigurationOf and BaselineOf) are not stored in XML/JSON/STON files ... I never liked the idea that code had to be loaded, but it was expedient at the time ...When you release a version (strong act), then you "freeze" the current working version of the�package meta-data and you publish it somewhere (a package repository) so that it becomes available to others. This metadata is not source cod, is easily accessible by tools and it becomes easy to build a web site on top of this to search / promote packages.So, the problems I'm trying to solve there are:
- do not be tied to a VCS and do not need to load code to "play" with packages metadata
I am curious about your use of the term "package" here ... is this "package" as in Monticello package, or "package" as in a collection of packages and project dependencies ... or ConfigurationOf or BaselineOf?
- offer a central place to easily find the package you need (for example, java has�http://central.sonatype.org/, php has�https://packagist.org/, etc.)
Have you looked at a BaselineOf?
- do not mix preoccupations: I do not want to have metadata of all released versions + working copy of a package at the same place