在 Pharo 中,我想定义一个ConfigurationOfNand2Tetris
只有一个包的 Metacello:
ConfigurationOfNand2Tetris>>baseline01: spec
<version: '0.1-baseline'>
spec
for: #common
do: [
spec
blessing: #baseline;
repository: 'http://www.smalltalkhub.com/mc/DamienCassou/Nand2Tetris/main';
package: 'Nand2Tetris' ]
ConfigurationOfNand2Tetris>>development: spec
<symbolicVersion: #development>
spec for: #common version: '0.1-baseline'.
当我执行时,MetacelloToolBox validateConfiguration: ConfigurationOfNand2Tetris
我总是收到 2 个警告:
- 警告:符号版本#development是指一个版本'0.1-baseline',其祝福#baseline不是#development { notDevelopmentVersion } [ #validateVersionSpecForSymbolicVersion:symbolicVersion: ]
- 警告:仅定义基线(未定义版本)。{ onlyBaselineVersion } [ #validatePragmas ]