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 | Store the Leverage CLI version used for a project #143

Open
juanmatias opened this issue Nov 14, 2022 · 2 comments
Open

Feature | Store the Leverage CLI version used for a project #143

juanmatias opened this issue Nov 14, 2022 · 2 comments
Assignees

Comments

@juanmatias
Copy link
Contributor

juanmatias commented Nov 14, 2022

Describe the Feature

This feature has to be evaluated (whether or not it worth it)
Store the CLI version used to create/use a Leverage project.
It can be stored in the build.env file, e.g.:

LEVERAGE_CLI_VER = 1.8.0

Expected Behavior

Be able to tell what CLI version was used in a given Leverage project.

Use Case

The use cases have to be evaluated. E.g. apply/remove/etc a project with the CLI version used previously for sake of compatibility.

@exequielrafaela
Copy link
Member

💻 build.env

# Project settings
PROJECT=bb

# General
MFA_ENABLED=false

# Terraform
TERRAFORM_IMAGE_TAG=1.8.0-0.0.1-tofu
LEVERAGE_CLI_VER = 1.8.0

📝 Version Compatibility

If (LEVERAGE_CLI_VER >= 1.14.x) {
  TERRAFORM_IMAGE_TAG=1.8.0-0.0.1-tofu
} else {
 print "Not compatible image"
}

@exequielrafaela
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants