Comments (2)
I am assuming you do not have permission to install tfswitch
at this location /usr/local/bin/
.
I would suggest that you create a path that you have access to. For example, your home path:
Can you try these steps:
- Get the installer on to your machine:
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
- Make installer executable:
chmod 755 install.sh
- Install
tfswitch
in a location you have permission:
./install.sh -b $HOME/.bin
- Export your
.bin
into your path:
export PATH=$PATH:$HOME/.bin
You should probably add step 4 in your .bash_profile
in your $HOME directory.
Next, try:
tfswitch -b $HOME/.bin/terraform 0.11.7
or simply tfswitch -b $HOME/.bin/terraform
@danfsd please let me know if this works. Thanks!
from terraform-switcher.
Hey @warrensbox, I've followed your steps and it's working now! Thanks 🎉
from terraform-switcher.
Related Issues (20)
- v1.1.1 ignoring `required_version` HOT 1
- Install script issue HOT 3
- Move away from golang openpgp HOT 2
- Version: v1.1.1 no longer reads terraform required_version anymore HOT 29
- tfswitch -v should not apply anything - it should only print the tfswitch version HOT 4
- terraform file extraction does not work under windows
- Standardise logic for failing/warning when an error occurs during terraform version detection HOT 4
- [Feature request] Disable color logs when not a terminal HOT 3
- Add additional debug logs when determining version from various sources
- Re-add support for environment variable that is a default version
- TFSwitch --latest should have an equivalent that will conform to version constraints in tf files HOT 1
- file extension (.exe) on Windows doubled in version 1.2.0
- OpenTofu binary installed as terraform.exe instead of tofu.exe on Windows HOT 3
- Bug: Tfswitch not following documented precedence HOT 2
- Bug: Misleading error message when directories for binaries don't exist. HOT 1
- spelling "Switched" versus "Use current" HOT 2
- Signature check causing tfswitch to fail on air-gapped environments HOT 3
- .terraform-version is ignored and latest version is installed HOT 4
- unable to set download mirror for opentofu HOT 2
- tfswitch -U logs instead of returning version HOT 4
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.