Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 😄

@Zordrak
Copy link
Collaborator

Zordrak commented Jul 4, 2025

I think I am inclined to agree. latest-allowed and latest should be common. If latest matches only stable, latest-allowed probably should too.

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.

4 participants