-
Notifications
You must be signed in to change notification settings - Fork 359
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
Trying to download mentions_count as a version #2175
Comments
This is really odd, surely there is some pattern? A specific release or version of the tools or something? I've tried querying the Github API and doing different things like deleting |
We haven't found any pattern and it's indeed very odd ... we are installing it the same way on all of our CI's. One thing I was thinking about was about 403 ...
But it fails with a valid error message. We will try to add some logs on the install script and see. |
Ah on a second pass I see how this is happening. It's no coincidence that This does reproduce: curl --fail -Ss https://api.github.com/repos/terraform-linters/tflint/releases/latest | jq --compact-output | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
The script is newline dependent. Without newlines, Why this would be non-deterministic assuming it comes from GitHub is a mystery. But the script could definitely be written more robustly to not be newline-dependent. I'll make that change. |
Summary
We are running tflint on many of our CI's
From time to time it fails installing with the following error:
We are installing tflint this way:
My guess is that this grep https://github.com/terraform-linters/tflint/blob/master/install_linux.sh#L46 is not catching the tag_name but another row. Not exactly sure why at the moment.
Downloading TFLint mentions_count seems totally wrong.
Command
TFLINT_VERSION=latest bash
Terraform Configuration
n/a
TFLint Configuration
n/a
Output
==================================================== Looking up the latest version ... Downloading TFLint mentions_count curl: (22) The requested URL returned error: 404 Exited with code exit status 22
The text was updated successfully, but these errors were encountered: