Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive command fails when model contains versioned imports. #788

Open
martinhalford opened this issue Jul 16, 2023 · 0 comments
Open

Archive command fails when model contains versioned imports. #788

martinhalford opened this issue Jul 16, 2023 · 0 comments

Comments

@martinhalford
Copy link
Member

Bug Report 馃悰

The cicero archive command fails if the model.cto contains versioned imports or specifies a versioned namespace.

Current Behavior

  • Take the current helloworld@0.14.0.cta archive and modify its package.json file to use cicero 0.24.0.
    "accordproject": {
        "template": "clause",
        "cicero": "^0.24.0",
        "runtime": "ergo"
    },
  • Confirm the namespace at the top of the model.cto looks like this...
namespace org.accordproject.helloworld
  • Execute the command cicero archive and 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: helloworld@0.14.0.cta
  • Now modify the namespace at the top of the model.cto to look like this...
namespace org.accordproject.helloworld@0.14.0
  • Execute the command cicero archive and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant