如何使Gofer加载到ConfigurationOfMyProject的基线中?

时间:2017-01-23 13:16:15

标签: smalltalk pharo gemstone

我可以成功将此项目加载到Pharo 5

  Gofer it
    url: 'http://seaside.gemtalksystems.com/ss/MockGemStone';
    configurationOf: 'MockGemStone';
    load.
  #ConfigurationOfMockGemStone asClass load.

但我想将它作为依赖于另一个项目的依赖项,该项目有自己的ConfigurationOfMyProject加载(后来由图像构建中的CI使用)。

我尝试过将其放在baseline

baseline11: spec
    <version: '1.1-baseline'>

spec for: #'pharo5.x' do: [
    self class ensureGitFileTree.
    spec blessing: #baseline.

    spec project: 'MockGemStone' with: [ 
        spec
            package: 'ConfigurationOfMockGemStone';
            versionString: #stable;
            repository: 'http://seaside.gemtalksystems.com/ss/MockGemStone'.
            ].

但是这会带来许多验证错误,例如"Error: symbolic version #stable does not resolve to a literal version. { cannotResolveVersion } [ #validatePragmas ]"

我应该如何将Gofer加载“翻译”到spec设置中?或者我在哪里可以看到有关如何完成的文档?谢谢!

1 个答案:

答案 0 :(得分:0)

我认为您需要将#package替换为:#className:,即:

 spec project: 'MockGemStone' with: [ 
        spec
            className: 'ConfigurationOfMockGemStone';
            versionString: #stable;
            repository: 'http://seaside.gemtalksystems.com/ss/MockGemStone'.
            ].