cli: Failing context operations like add, use, list, etc.
Context operations do not work even after initializing context
How to Reproduce
Create an empty directory, and spin up a sample asyncapi spec document. for this I used the sample mentioned in the docs :
asyncapi config context init
you should see a .asyncapi-cli file get created with the following content:
{"store":{}}
now running asyncapi config context add foo ./asyncapi.yaml gives the following message even if context is initialized already
You have no context file configured. Run "asyncapi config context init" to initialize it.
-
Screenshots
-
Link to GitHub repository with project that has issues
Expected behavior
- Context should be added to the
.asyncapi-clifile
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (19 by maintainers)
I have narrowed the search for this bug. The bug is not reproduced when file
oclif.manifest.jsonis removed from prebuilt@asyncapi/clipackage. Whenclipackage is built locally it does not includeoclif.manifest.jsonfile, that is why the bug is not reproduced when using the locally built package.getting the same with binary installed over npm: