Yuri, pure filetree will only allow you access to the latest version (HEAD) of the repository (and will only match if you load that precise version number as stored in the package metadata or if you don't specify a version number). You have to change the commit ID (and branch) via git clone, git checkout and git checkout -b before. github:// urls may be able to select a specific commit ID, but I don't know how. You can select the branch, however. Again, if you specify a version number for your package with a github:// url, the metadata of your package has to agree with you or it will refuse to load (you are able to see only the latest version of the package). gitfiletree:// urls allows you to select the branch and any version visible in the git history. Read-only gitfiletree:// urls reduce the git history to one commit, so all versions are listed as .1. (Note that gitfiletree:// urls with https are read-only). That said, if you found a way to refer a specific commit via github://, I'd really like to know how :) Thierry ________________________________________ De : Pharo-dev [pharo-dev-bounces@lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk@me.com] Envoyé : samedi 26 avril 2014 12:11 à : Pharo Development List Objet : Re: [Pharo-dev] Fast way to load package form github Do you know how to specify versions with pure filetree? I know that I can specify commit SHA or branch in URL, but can I somehow redefine version for a version definition? Uko On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier@cea.fr> wrote:
Yuri,
I think the best would be a github:// url in a configuration.
Shortest is something like:
Gofer new url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/'; configurationOf: 'ProjectOfYuri'; loadStable
(with the github:// url inside ConfigurationOfProjectOfYuri)
Note that I have added back https access to github in gitfiletree, but, still, it implies OSProcess and git command line access (but no need to register on github.com)
Thierry ________________________________________ De : Pharo-dev [pharo-dev-bounces@lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk@me.com] Envoyé : samedi 26 avril 2014 09:34 à : Pharo Development List Objet : Re: [Pharo-dev] Fast way to load package form github
Yes, but this requires user to clone the repository, this is not as fast as just Gofer with Monticello. I know that there is a support for github:// URIs in Metacello, but as far as I remember they donât work in Gofer.
Uko
On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Gofer with a filetree:// URL as package ?
Using the Monticello UI Tool you can just add a repo, select filetree as type and load any package.
On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi guys, sorry if there was already this question, but is there a fast way to load a package from github (saved with filetree)? Iâm looking for some way to tell people: execute âthisâ and you will have my package in your image.
Cheers Uko