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

New version v1.1.0 does not work as expected #398

Closed
Mabog10 opened this issue Apr 25, 2024 · 4 comments
Closed

New version v1.1.0 does not work as expected #398

Mabog10 opened this issue Apr 25, 2024 · 4 comments
Assignees
Labels
new feature New feature or request
Milestone

Comments

@Mabog10
Copy link

Mabog10 commented Apr 25, 2024

Hello, there is some issue with the latest version which has been released today - it determines wrongly Terraform version "09" while it was working fine until today. Please kindly fix the issue.

warrensbox/terraform-switcher info checking GitHub for latest tag
warrensbox/terraform-switcher info found version: 1.1.0 for v1.1.0/linux/amd64
warrensbox/terraform-switcher info installed /home/AzDevOps/.bin/tfswitch

Trying to read required terraform binary version from terraform files within /agent/_work/1/s/edited
TFVER=09

@MatrixCrawler
Copy link
Collaborator

Could you please start tfswitch with --log-level=DEBUG and provide us with the output?

@Mabog10
Copy link
Author

Mabog10 commented Apr 25, 2024

We determined that the root cause of the issue is that some outputs of tfswitch has been changed - for example timestamp has been added before "Matched version: " and this is causing our pipelines to fail (because we are extracting the version from tfswitch outputs and then we assign it to variable).

@MatrixCrawler
Copy link
Collaborator

Ah sorry to hear that.
The log format will (likely) not change in the future, but this is really not something one should rely on in a build pipeline.
Logging output is prone to changes.

You probably want something like this #296

@MatrixCrawler MatrixCrawler added the new feature New feature or request label Apr 26, 2024
@MatrixCrawler MatrixCrawler self-assigned this Apr 26, 2024
@MatrixCrawler MatrixCrawler added this to the Release 1.2.0 milestone Apr 26, 2024
@warrensbox
Copy link
Owner

@Mabog10 see latest release.
Let us know if the fix proposed by @MatrixCrawler works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants