minamijoyo / tfupdate

Update version constraints in your Terraform configurations
MIT License
542 stars 23 forks source link

Show or hide pre-releases not working #44

Closed nitrocode closed 1 year ago

nitrocode commented 3 years ago

Related PR https://github.com/minamijoyo/tfupdate/pull/42

It would be nice to show if a specific release is or isn't a pre-release

✗ tfupdate --version
0.5.1

For example

✗ tfupdate release list cloudposse/terraform-aws-efs -n 1 --pre-release 
0.31.0
✗ tfupdate release list cloudposse/terraform-aws-efs -n 1               
0.31.0

This version is a pre-release so it should be hidden, no ?

minamijoyo commented 3 years ago

@nitrocode Thank you for reporting this.

It's intentional by design. The tfupdate filters pre-releases using the semantic versioning scheme. It's a stable way to filter them across all source types. I'm not sure the Terraform Registry can provide a meta data for pre-release, but at least cloudposse/efs/aws v0.31.0 on the registry is now marked as the latest. It conflicts with GitHub.

image image

minamijoyo commented 1 year ago

I'm going to close this because there has been no activity on this recently. Please feel free to reopen this if you have any questions or suggestions. Thanks!