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

Adds latest-allowed-stable option #439

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vahid-haghighat
Copy link

Description

In the current implementation, the latest and latest-allowed options have potentially confusing behaviours:

  • latest-allowed can unexpectedly include pre-release versions
  • latest is limited to stable versions only

This discrepancy can cause issues, particularly in CI/CD pipelines where version predictability is crucial.

To address this, I propose adding a new latest-allowed-stable option that:

  • Ensures only stable versions are considered
  • Preserves existing behaviour for current users
  • Provides a clear, predictable way to select the most recent stable version

This change gives developers more granular control over version selection while maintaining backward compatibility.

@grillba
Copy link

grillba commented Jan 2, 2025

cant it just fix it so latest-allowed works in the same way as latest? This was fixed in version 1.0.0 for latest

Note I'm not a maintainer on this repo, just chanced upon this same issue

Edit: tenv supports only installing stable releases: tenv terraform install latest-allowed

@kvendingoldo
Copy link

@grillba you can use latest-pre

@vahid-haghighat
Copy link
Author

cant it just fix it so latest-allowed works in the same way as latest? This was fixed in version 1.0.0 for latest

Note I'm not a maintainer on this repo, just chanced upon this same issue

Edit: tenv supports only installing stable releases: tenv terraform install latest-allowed

It is possible to fix the latest-allowed, but I wasn't sure if that was the right move. Maybe some people are using pre-releases with latest-allowed? I would have no idea why, though 😄

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

Successfully merging this pull request may close these issues.

3 participants