-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
Bug Report 🐛
The cicero archive command fails if the model.cto contains versioned imports or specifies a versioned namespace.
Current Behavior
- Take the current
[email protected]archive and modify itspackage.jsonfile to use cicero 0.24.0.
"accordproject": {
"template": "clause",
"cicero": "^0.24.0",
"runtime": "ergo"
},
- Confirm the namespace at the top of the
model.ctolooks like this...
namespace org.accordproject.helloworld
- Execute the command
cicero archiveand the following output is displayed
% cicero archive
10:53:07 am - INFO: Using current directory as template folder
10:53:09 am - INFO: Creating archive: [email protected]
- Now modify the namespace at the top of the
model.ctoto look like this...
namespace [email protected]
- Execute the command
cicero archiveand the following output is displayed
% cicero archive
10:53:41 am - INFO: Using current directory as template folder
10:53:41 am - ERROR: Expected identifier but "0" found. File /Users/martin/helloworld/model/model.cto line 1 column 40
Expected Behavior
As we "cannot use an unversioned import org.accordproject.contract when 'strict' option on Model Manager is set" then the cicero archive command should accept versioned namespaces and imports.
Metadata
Metadata
Assignees
Labels
No labels