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

Add a version number to template cli #91

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

JesseAbram
Copy link
Member

entropy-test-cli = { git="https://github.com/entropyxyz/entropy-core.git", branch = "programs-version" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will change when merged

Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.

The only thing i would want to change is that i currently don't see an easy way to know what version a program needs given its source code.

Either we should make the version number match the major or minor version of entropy-programs-core (which in turn should match that of entropy-programs-runtime).

Or we should have have a field in the template program's Cargo.toml which specifies which version number of the runtime this program is designed for, eg:

[package.metadata.entropy-program]

# The version number of the programs runtime
runtime-version = 0

@JesseAbram JesseAbram merged commit 95eeb23 into master Sep 16, 2024
2 checks passed
@JesseAbram JesseAbram deleted the add-version-number-to-cli branch September 16, 2024 20:03
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants