-
Notifications
You must be signed in to change notification settings - Fork 125
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: cicero get
command pulls in obsolete external models.
#793
Comments
Is |
Hi @DianaLease - Interesting. I tried This is the
I then ran the following command:
The output was as execped - just the
I then ran the cicero command as follows:
This is the output which also included the erroneous
The file
VersionsConcerto: 3.12.0 |
Bug Report 🐛
Context
As part of the process of updating the unit tests for the Cicero repo, I am updating the many
model.cto
files to include the new Concerto syntax (e.g. adding versions to the namespaces, adding@template
toassets
and updatingimport
statements).Once these
model.cto
files have been updated, I am deleting all external model*.cto
files frommodel
folder in order to allow Cicero to correctly import the correct external reference files.This leaves a clean
\model
folder containing a singlemodel.cto
file.I then run
cicero get
which, I assumed, would pull the latest reference.cto
files from the Model Repository.Example
For example, starting with the following model file from [here](https://github.com/accordproject/cicero/blob/main/packages/cicero-cli/test/data/helloemit/model/model.cto) I modified it to be as so:
The
cicero get
command throws an error and drags in the obsolete@models.accordproject.org.accordproject.contract.cto
file.See command history:
Expected Behaviour
Failed to find an asset
error.@models.accordproject.org.accordproject.contract.cto
imported.@[email protected]
&@[email protected]
.Context (Environment)
The text was updated successfully, but these errors were encountered: