Hi,
I have a very simple Baseline:
baselineOf: spec
<baseline>
spec
for: #common
do: [
spec baseline: 'NeoJSON' with: [ spec repository:
'github://svenvc/NeoJSON:master/repository' ].
spec baseline: 'P3' with: [ spec repository:
'github://svenvc/P3' ].
spec package: 'Pre-Checkin-Database' with: [ spec
requires: #('NeoJSON'
'P3') ].
]
The Baseline file is in:
C:\Program Files
(x86)\Pharo\pharo-local\pre-checkin\booking-addons\Pre-Checkin\BaselineOfPreCheckinDatabase
Also in Development Image the following answer an empty collection:
MetacelloToolBox validateBaseline: BaselineOfPreCheckinDatabase.
But in a Fresh Image the following evaluation answer an error:
Metacello new
repository: 'tonel://C:\Program Files
(x86)\Pharo\pharo-local\pre-checkin\booking-addons\Pre-Checkin\';
baseline: 'PreCheckinDatabase';
onLock: [ :ex | ex honor ];
load.
Any idea what is wrong ?
Never worked with Tonel before but fore sure something similar works fine
with filetree.
Stack:
ByteString(Object)>>doesNotUnderstand: #resolve:
FileLocator>>resolve
FileLocator(AbstractFileReference)>>fileSystem
FileLocator(AbstractFileReference)>>/
IceLibgitRepository class>>localRepositoriesLocation
IceLibgitRepository class>>repositoriesLocation
IceRepositoryCreator>>defaultLocation
IceRepositoryCreator>>locationToUse
IceRepositoryCreator>>validateNotDuplicated
IceRepositoryCreator>>validate
[ self validate.
self isCloning
ifTrue: [ self cloneRepository ]
ifFalse: [ self addLocalRepository ] ] in
IceRepositoryCreator>>createRepository in Block: [ self validate....
BlockClosure>>on:do:
IceRepositoryCreator>>createRepository
[ repository := builder createRepository ] in
MCGitHubRepository(MCGitBasedNetworkRepository)>>createIcebergRepositoryFor:
in Block: [ repository := builder createRepository ]
BlockClosure>>on:do:
MCGitHubRepository(MCGitBasedNetworkRepository)>>createIcebergRepositoryFor:
[ ^ self createIcebergRepositoryFor: urlToUse ] in
MCGitHubRepository(MCGitBasedNetworkRepository)>>createIcebergRepositoryWithFallbackFor:url:
in Block: [ ^ self createIcebergRepositoryFor: urlToUse ]
BlockClosure>>on:do:
MCGitHubRepository(MCGitBasedNetworkRepository)>>createIcebergRepositoryWithFallbackFor:url:
[ | remote |
remote := IceGitRemote url: remoteUrl.
self createIcebergRepositoryWithFallbackFor: remote url: remoteUrl ] in
MCGitHubRepository(MCGitBasedNetworkRepository)>>getOrCreateIcebergRepository
in Block: [ | remote |...
OrderedCollection(Collection)>>detect:ifFound:ifNone:
OrderedCollection(Collection)>>detect:ifNone:
MCGitHubRepository(MCGitBasedNetworkRepository)>>getOrCreateIcebergRepository
IceGithubRepositoryType>>mcRepository
Iceberg class>>mcRepositoryFor:
IceMetacelloPharoPlatform>>createRepository:
MetacelloMCBaselineProject(MetacelloMCProject)>>createRepository:
MetacelloRepositorySpec>>createRepository
[ aSpec createRepository ] in [ :aSpec |
| description repo |
description := aSpec description.
(repo := repositories
detect: [ :rep | rep description = description ]
ifNone: [ aSpec createRepository ]) ~~ nil
ifTrue: [ repos add: repo ] ] in
MetacelloEnsureFetchingMCSpecLoader(MetacelloCommonMCSpecLoader)>>repositoriesFrom:ignoreOverrides:
in Block: [ aSpec createRepository ]
Array(Collection)>>detect:ifFound:ifNone:
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html