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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to not add schema files when deploying programs. #312

Open
johnnymatthews opened this issue Nov 20, 2024 · 3 comments
Open

Allow users to not add schema files when deploying programs. #312

johnnymatthews opened this issue Nov 20, 2024 · 3 comments

Comments

@johnnymatthews
Copy link
Contributor

Currently the CLI requires that users add the path to their auxilary and config schemas. This isn't strictly necessary, as programs can be deployed without them. There's a similar issue over in the the Entropy Core repo to remove the need for these files.

@johnnymatthews johnnymatthews changed the title Allow users to not add schema files. Allow users to not add schema files when deploying programs. Nov 20, 2024
@mixmix
Copy link
Contributor

mixmix commented Nov 20, 2024

@johnnymatthews we're still nailing down the specification around schema. I think you're right this is gonna need to change, but will hold till we have more coherence before executing:

entropyxyz/sdk#418

@johnnymatthews
Copy link
Contributor Author

Gotcha.

I tried supplying the CLI with a couple of empty .json files, but it didn't like that:

Deployment failed: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at file:///home/johnny/Code/entropy/cli/dist/cli.js:11428:71
    at async EntropyProgram.deploy (file:///home/johnny/Code/entropy/cli/dist/cli.js:11535:33)
    at async deployProgramTUI (file:///home/johnny/Code/entropy/cli/dist/cli.js:11862:21)
    at async entropyProgramDev (file:///home/johnny/Code/entropy/cli/dist/cli.js:11831:3)
    at async main (file:///home/johnny/Code/entropy/cli/dist/cli.js:12001:9)

Understandable since I think the CLI uses those files to display info back to the user.

@johnnymatthews
Copy link
Contributor Author

Turns out you can use a couple of empty json blocks:

echo "{}" > auxiliary_data.json && echo "{}" > configuration.json

You can then use these in the CLI to deploy a program.

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

2 participants