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

[Request]: Site config minimum hab requirements #63

Open
MHendricks opened this issue Jul 27, 2023 · 0 comments
Open

[Request]: Site config minimum hab requirements #63

MHendricks opened this issue Jul 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@MHendricks
Copy link
Member

Description

It would be nice to be able to ensure that the host running hab has a valid version installed. We can use the site files to define a requirement for hab. If specified and the hab version is not valid, hab should exit with a clear error telling the user to update hab.

Essentially this makes it so you know that a host has all of the required features for your hab configuration.

Solution

If hab_requirements is defined in a site json file, hab will error out if it doesn't match the requirements.

{
    "set": {
        "hab_requirements": ["hab>=0.20.0"]
    }
}

This would check hab.__version__ against the hab_requirements setting and if it doesn't match, it would raise an exception.

Additional Context

No response

@MHendricks MHendricks added the enhancement New feature or request label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant