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

feature: add cocmd minimum version requirement in Packcages cocmd.yaml files #88

Open
mzsrtgzr2 opened this issue Nov 6, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@mzsrtgzr2
Copy link
Contributor

mzsrtgzr2 commented Nov 6, 2023

Description
when we will need to change the structure of our package files
and maybe update cocmd cli needs to take place.
so add a field to package yaml spec with minimum version requirment from cocmd.

upon cocmd run, check for the current version and if requirement not met stop the execution and ask the user to update.
show the link to our website to install/update the software.

for example:

name: node
min_version: "1.0.65"

and then when running with cocmd v1.0.64:

>cocmd run node.setup

Minimum required version is 1.0.65 for cocmd. you are using v1.0.64.
please update cocmd and try again.
https://cocmd.org/docs/intro

tests
mock several yaml files and check for behavior.

Docs

@mzsrtgzr2 mzsrtgzr2 added enhancement New feature or request good first issue Good for newcomers and removed enhancement New feature or request labels Nov 6, 2023
@mzsrtgzr2 mzsrtgzr2 changed the title feature: add cocmd version requirement in Packcages cocmd.yaml files feature: add cocmd minimum version requirement in Packcages cocmd.yaml files Nov 6, 2023
@mzsrtgzr2
Copy link
Contributor Author

mzsrtgzr2 commented Nov 19, 2023 via email

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

No branches or pull requests

1 participant