-
Notifications
You must be signed in to change notification settings - Fork 67
Error: unexpected value returned by API on tenv tg install latest #508
Description
Describe the bug
When running tenv tg install latest, we are receiving a Error: unexpected value returned by API. The latest command is detecting a pre-release version of terragrunt.
→ tenv tg install latest
Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases
Found compatible version remotely : 2025110401
Installing Terragrunt 2025110401
Fetching release information from https://api.github.com/repos/gruntwork-io/terragrunt/releases/tags/v2025110401
Error: unexpected value returned by API
It also fails with latest-stable
→ tenv tg install latest-stable
Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases
Found compatible version remotely : 2025110401
Installing Terragrunt 2025110401
Fetching release information from https://api.github.com/repos/gruntwork-io/terragrunt/releases/tags/v2025110401
Error: unexpected value returned by API
Using a version constraint does work
→ tenv tg install "~>0.90"
Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases
Found compatible version remotely : 0.93.3
Terragrunt 0.93.3 already installed
This has been reported before:
- Installation of latest terragrunt version is not working anymore #385
- Error: unexpected value returned by API on
tenv tg install latest#297
I understand the feeling expressed in this comment that latest should include alpha releases. But latest-stable should return the latest semver release. I'd also expect the install to work regardless of version used
To Reproduce
Run tenv tg install latest
Expected behavior
When running tenv tg install latest I expect terragrunt to be installed even if its not the version I'm expecting.
Environment (please complete the following information):
- OS: macOS 26.1
- tofuenv version
4.7.21
Additional context
As a fix, we'll be updating our CI images to use tenv tg install "~>0.90" to get the latest semver release.