Don't forget to enable Metacello integration in settings. On Tue, Oct 3, 2017 at 8:55 AM, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 3 Oct 2017, at 08:47, Jan BlizniÄenko <bliznjan@fit.cvut.cz> wrote:
Hello
I have a local clone of git repository and I am looking for code that adds this repository to Iceberg and then loads its baseline into Pharo. I am using Pharo 6.1 (image 60510) and last stable Windows VM.
Right now I am experimenting with following code, it adds the project into Iceberg, but does not load the baseline. The code is:
SystemSettingsPersistence updateSettingNodes. "sets ssh key locations"
(Smalltalk at: #IceRepositoryCreator) new url: 'git@gitlab.com:bliznjan/nameofmyproject.git'; location: '/C:/Users/User/Pharo/repo/nameofmyproject/filetree' asFileReference; subdirectory: 'filetree'; createRepository. "this part seems to work fineâ
I think this is your error: '/C:/Users/User/Pharo/repo/nameofmyproject/filetree, needs to be '/C:/Users/User/Pharo/repo/nameofmyproject (without the filetree part, which is the subdirectory)
now, I think if you do:
Metacello new repository: âgitlab://bliznjan/nameofmyproject/filetree'; baseline: âMyProjectâ load.
ir will also do what you want without the two steps.
Metacello new baseline: 'NameOfMyProject'; repository: 'gitlocal:///C:/Users/User/Pharo/repo/nameofmyproject/filetree'; load. "this one fails with exception below"
loading the baseline ends with Exception Could not resolve: BaselineOfNameOfMyProject [BaselineOfNameOfMyProject] in C:\Users\User\Pharo\images\TestingImage1\pharo-local\package-cache C:\Users\User\Pharo\repo\nameofmyproject\filetree (Libgit)
Those paths seem correct - the package-cache is located in exactly that position (but does not contain anything that relates to my project) and the filetree (repository) in the mentioned path and there is a BaselineOfNameOfMyProject.package directory in there.
Also, if I then try loading the baseline manually via Iceberg, by right clicking on BaselineOfNameOfMyProject in Packages tab, I get exactly same exception.
Loading packages one by one manually via Iceberg Packages tab works. Also, loading the baseline via GitFileTree works.
Thank you Jan
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html