-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support terragrunt.hcl file like tfswitch #117
Comments
++ Was kinda surprised that tfswitch supported this but tgswitch didn't! |
@warrensbox given the open issues, wouldn't it make sense to just completely switch the current tgswitch package and replace it with the ftswitch code? (and obviously switch out 'tf / terraform' with 'tg / terragrunt'. The code seems pretty generic (I don't do Go so ignore my ignorance if this is not the case). Is that something worth considering? And is it something you're still willing to commit to? |
Ok, so that was a bit less generic than expected, but I think I've managed to port it: https://github.com/Swahjak/terragrunt-switcher. Once again; I am by no means a Go developer so I'm just going with what was available. That is also the reason for me referring to Swahjak/terragrunt-switcher, not trying to hijack your product, just didn't know how to test / get it to work without changing these references. If this is something you're willing to use / look at it @warrensbox I would be more than happy to create a pull (and obviously change Swahjak/terragrunt-switcher back to warrensbox/terragrunt-switcher). |
I am working on this. I will release feature this next Monday Jun 13, 2022 @Swahjak |
I apologize for the delay. I am still running test cases for this release. |
No worries! Glad you're willing to commit time to this. |
@Swahjak I released this feature with 0.6.0 |
Hi, I have a simple setup that results in a 404 page from GitHub pages being downloaded and stored in
$ rm -r ~/.terragrunt.versions && tgswitch
Terragrunt file found: /Users/max.friedrich/tgswitch-test/terragrunt.hcl
Reading required version from constraint: 0.35.20
Matched version: 0.35.20
2022/07/07 14:56:54 Creating directory for terragrunt: /Users/max.friedrich/.terragrunt.versions/
Downloading https://warrensbox.github.io/terragunt-versions-list/index.json/v0.35.20/terragrunt_darwin_amd64 to terragrunt_darwin_amd64
Downloading ...
9339 bytes downloaded.
Switched terragrunt to version "0.35.20"
$ head ~/.terragrunt.versions/terragrunt_0.35.20
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'">
<title>Page not found · GitHub Pages</title>
<style type="text/css" media="screen">
body {
background-color: #f1f1f1;
margin: 0; If the specified version was already downloaded before with |
+1 to this, installed tgswitch and running into the same error on a new install. Which then results in
The version I installed was
|
@warrensbox behalf of @Swahjak i can say its working. I also would like to suggest if you can provide this issue too : #89 you can close this |
find out now, I have the same issue as @maxfriedrich |
This is a temperary solution |
I am traveling out of the country at the moment. I will take a look at this when I return home. |
have the same issue, any chance this can have more attention? |
I have created a separate issue for the 404 problem - I don't think it is related to this issue, which can probably be closed since the functionality has been released. |
btw. you can also use tenv that support Terraform as well as OpenTofu (and Terragrunt :) ) in one tool. It allow you to simplify version management and can do much more, than tgswitch. |
Hi. First of all, thanks for both tgswitch and tfswitch. Absolute life savers.
Would be awesome if you could support using the terragrunt.hcl file like tfswitch does.
The text was updated successfully, but these errors were encountered: