Comments (2)
To install tfswitch
as unprivileged user, use the -b
option of the install.sh
script. It defines the path directory of the tfswitch
binary :
$ wget raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
$ bash install.sh -b ~/.local/bin
warrensbox/terraform-switcher info checking GitHub for latest tag
warrensbox/terraform-switcher info found version: 0.10.1010 for 0.10.1010/linux/amd64
warrensbox/terraform-switcher info installed /home/xat/.local/bin/tfswitch
Then, I am able to tfswitch
, but there I need to use -b
to define the complete location of the terraform
symlink for the binary :
~/.local/bin/tfswitch -b ~/.local/bin/terraform
2021/03/05 10:38:38 Creating directory for terraform: /home/xat/.terraform.versions/
✔ 0.14.7
Downloading https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_linux_amd64.zip to terraform_0.14.7_linux_amd64.zip
Downloading ...
33783879 bytes downloaded.
Switched terraform to version "0.14.7"
Hope this help
from terraform-switcher.
You can. Helpful instructions are provided on the Troubleshooting page.
I'm a bit disappointed this is not the default behaviour. pyenv
, nvm
all operate within the user directory. They also allow you to work on different versions on multiple projects at the same time.
tfswitch appears to modify the global context.
from terraform-switcher.
Related Issues (20)
- Installation via install.sh fails for version 1.0.0 HOT 30
- Latest release 1.0.0 does not support glibc 2.31 or lower HOT 2
- GLIBC 2.31 - No Longer Supported ? HOT 2
- bug: latest version of tfswitch failing glibc version HOT 2
- Version flag is not displaying the correct version HOT 4
- Implement support for multiple Terraform version constraints from the module directory
- Fix code scanning alert
- Why is the test for linux including build tasks? HOT 3
- --show-latest-pre and --show-latest-stable not working
- install.sh tries to download 1.1.0 instead of v1.1.0 HOT 3
- New version v1.1.0 does not work as expected HOT 3
- Error in v1.10 parsing version HOT 3
- Any content in terragrunt.hcl other than "terraform_version_constraint" causes tfswitch to error HOT 7
- We are facing the issue with the latest version(v1.1.0) of tfswitcher HOT 2
- v1.1.0 does not parse tf version constraint correctly HOT 5
- install.sh does not support non v-prefixed tags HOT 3
- Terraform `1.8.2` ships additional file within tarball
- Reading automatically from ~/.tfswitch.toml is broken HOT 17
- `log-level` TOML config doesn't work HOT 1
- How do I turn off logging? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-switcher.