Skip to content

Releases: warrensbox/terraform-switcher

1.0.0

01 Apr 07:24
80a33f7
Compare
Choose a tag to compare

Changelog

  • 5136156 #major - create major release
  • fd8dbdc - apply fixes as suggested
  • a6a9ae0 - extracted defaultBin constant to an extra package as it is reused in main and lib. - added detection of home directory in case we are using windows. - updated tests accordingly.
  • 996f5b7 - integrated code to copy terraform binary to path directory in windows, as the symlink does not seem to work
  • 53e7142 - updated x/text package due to a vulnerability
  • 74bbd31 Apply suggestions from code review
  • cb7237c Check binPath instead of defaulting to /usr/local/bin/
  • b209461 Cleanup comments
  • ca3950d Create go.yml
  • 68b07a2 Fix binPath when getting latest
  • 87442e4 Make leading slash optional in regex when looking for versions
  • 4839e56 Merge branch 'master' into fix/move-circle-github-ci
  • a487630 Merge pull request #288 from hknerts/master
  • 5381b65 Merge pull request #295 from jukie/jukie/fix-binpath-2
  • 2bda316 Merge pull request #297 from jukie/jukie/fix-binpath
  • 3af6a33 Merge pull request #305 from JayDoubleu/patch-1
  • 3cec6bf Merge pull request #313 from tusv/artifactory-regex-fix
  • b7fc0d7 Merge pull request #314 from kim0/aka/user-home-dir
  • abfbee7 Merge pull request #321 from eternityduck/patch-1
  • e5ca144 Merge pull request #327 from MatrixCrawler/windows-home-dir
  • ef1f0ce Merge pull request #332 from warrensbox/dependabot/go_modules/golang.org/x/sys-0.18.0
  • b74a6fd Merge pull request #335 from warrensbox/fix/move-circle-github-ci
  • 387ad96 Merge pull request #336 from warrensbox/master
  • 4145329 Merge pull request #337 from warrensbox/fix/move-circle-github-ci
  • 80a33f7 Merge pull request #338 from warrensbox/master
  • 6950928 Refactor re-use of PLATFORM
  • 408dc99 Remove uneccesary lines in init
  • 74fcefa Remove unused func
  • 9c9a035 Update README.md
  • c0c2823 Update README.md
  • a9cdb95 Update lib/symlink_test.go
  • 3751b72 Update lib/symlink_test.go
  • 97a1178 Updating "x/text" to prevent CVE-2022-32149
  • 38dac39 Use go-homedir everywhere
  • 395e143 Use os.UserHomeDir() everywhere
  • da4d8b8 added bindir
  • 75a2d4e added build code
  • eb0ff7f added cutom path
  • 27d68ec added more test
  • d18976a fix run command
  • 9a74553 go mod tidy
  • d081668 go: bump golang.org/x/sys
  • 18961ca rm circle ci
  • 5ae065a separate windows and linux test
  • 51dd3bf simplify test
  • 948df12 test build
  • 34397f7 test linting
  • c2926b9 testing
  • cd44d4e typo -added s
  • 0ea5a70 update goreleaser

0.13.1308

06 Feb 01:39
70e50f9
Compare
Choose a tag to compare

Changelog

  • 8a7f5f5 Add default or fallback version for CICD pipelines
  • e77b48c Default version flag added
  • 5a95fbc Merge pull request #275 from sivaramsajeev/feature/default-version
  • d7dfd1b Merge pull request #286 from warrensbox/feature/add-fallback-option
  • 70e50f9 Merge pull request #287 from warrensbox/master
  • d8d713f Update main.go
  • f1c77e1 added fallback option

0.13.1300

27 Oct 06:05
201c8e9
Compare
Choose a tag to compare

Changelog

  • 05dbd11 Add Linux ARMv{6,7} arch to install.sh
  • 5fbd75d Create dependabot.yml
  • ef92e9a Merge pull request #257 from Jukie/master
  • f0a0811 Merge pull request #261 from warrensbox/feature/add_more_platforms_to_install.sh
  • 201c8e9 Merge pull request #276 from warrensbox/master
  • 62ae3e1 Update dependabot.yml
  • 107631f update go sum

0.13.1288

04 Jul 06:22
b24be8c
Compare
Choose a tag to compare

Changelog

  • b83a34e Merge pull request #255 from warrensbox/jukie/cve-fixes
  • b24be8c Merge pull request #258 from warrensbox/master
  • 151798e Upgrade libraries: cve's

0.13.1275

20 Jun 06:29
1d262d6
Compare
Choose a tag to compare

Context

Tfswitch cannot reach Hashicorp url and cli help not up-to-date

Fixed

  • Update the regex for hashicorp url
  • Update documentation on CLI

Upgrade

N/A

Added

N/A

Removed

N/A

Fixes:

#251 #249

Changelog

  • 6c622c5 🐛 Corrected bad installations if user doesn't input 2 dots in version
  • 585ed97 📝 Updated documentation instead of code
  • 4ab85e4 Drop xargs in favour of while loop and switch one another set +e
  • 98cdf38 Fail CircleCI early
  • 73ca476 Merge pull request #246 from warrensbox/fix/Fail_CircleCI_pipeline_on_errors
  • 3072cc2 Merge pull request #249 from afreyermuth98/master
  • 59df4fb Merge pull request #251 from chrispruitt/adjust-mirror-regex
  • 1d262d6 Merge pull request #253 from warrensbox/master
  • 49579b9 Push breaking change for testing
  • 518152c Revert last change
  • cc61983 adjust regex to get all terraform versinos from mirror

0.13.1250

27 May 17:14
8a41cc2
Compare
Choose a tag to compare

Context

Issues with changing directories

Fixed

  • Chdir with absolute project path
  • MacOs -> macOS to be consistent with the standard casing

Upgrade

  • upgraded to go 1.18

Added

  • Include testing in build job
    find ./test-data/* -type d | xargs -n 1 ./build/tfswitch -c

Removed

N/A

Fixes:

#222 #230

Changelog

  • 64761d4 Automate binary tests from test-data directory (#234)
  • 404af78 Fix chDirPath flag to allow absolute paths
  • 08a85ed Fix image ref
  • 214a4bd Fix working directory
  • 35f482a MacOs -> macOS to be consistent with the standard casing (#230)
  • 35b481a Merge pull request #235 from Jukie/techdebt/go-upgrade
  • 6583c47 Merge pull request #244 from warrensbox/bug-fix/chdirpath
  • 8a41cc2 Merge pull request #245 from warrensbox/master
  • 936debf Swap logic for sourcing directory path
  • 5e36f12 Upgrade to Go 1.18
  • 1b35962 Upgrade to Go 1.18 (#232)

0.14.0-alpha-1

25 May 05:32
35b481a
Compare
Choose a tag to compare
0.14.0-alpha-1 Pre-release
Pre-release

Context

This is the initial alpha release for v0.14. Will introduce new way to GET list of releases from hashicorp.com

Refactored

This will now GET the versions from the new API url https://api.releases.hashicorp.com/v1/releases/terraform

Removed

N/A

Fixes:

#222

0.13.1221

11 May 14:30
ed7e986
Compare
Choose a tag to compare

Changelog

  • 7282aec Applying patch from allen-servedio
  • 31a5b91 Merge pull request #225 from micahflattbuilt/version_url_tweaks
  • ed7e986 Merge pull request #229 from warrensbox/master
  • c0b7bc6 Simplify the regex and account for possiblity of re-introduction of ending slash
  • a9507db Tweaking URL regex based on comment from aderuelle

0.13.1218

08 Mar 21:44
9a8164c
Compare
Choose a tag to compare

Context

The semver implementation was improved. Previous version of tfswitch did not implement this correctly.

Now it follows terraform's guideline.

~>: Allows only the rightmost version component to increment. For example, to allow new patch releases within a specific minor release, use the full version number: ~> 1.0.4 will allow installation of 1.0.5 and 1.0.10 but not 1.1.0. This is usually called the pessimistic constraint operator

Fixed

Semver implementation

Added

N/A

Removed

N/A

Fixes:

#200 #207 #215

Changelog

  • 746549d Added test cases for unit test
  • ea69e4d Merge pull request #208 from warrensbox/fix/semver-constraints
  • 092ccf5 Merge pull request #209 from warrensbox/fix/fix-semver-main
  • 9a8164c Merge pull request #216 from warrensbox/master
  • 4775ac8 added quick start
  • 912f548 fix semver related issue
  • a5b23dd fixed semver for stable release
  • e7d1780 removed comment

0.13.1201

29 Nov 03:09
7e72036
Compare
Choose a tag to compare

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[0.13.1201] - 2021-11-28

Bug fixes

  • Fixed: No matter what users pass to --bin or -b, the local binary is called terraform. User can resume old behavior where -b is custom

Added

  • -c, --chdir=value : Switch to a different working directory before executing the given command. Ex: tfswitch --chdir terraform_project will run tfswitch in the terraform_project directory
  • -P, --show-latest-pre=value : Show latest pre-release implicit version. Ex: tfswitch --show-latest-pre 0.13 prints 0.13.0-rc1 (latest)
  • -S, --show-latest-stable=value : Show latest implicit version. Ex: tfswitch --show-latest-stable 0.13 prints 0.13.7 (latest)
  • -U, --show-latest : Show latest stable version

Removed

  • snapcraft installation option

Merged and released commits

  • c730f27 Add "show" options to just show the latest versions rather than actually switch or install.
  • 2708a3b Implement --chdir - Flag
  • 01aed79 Install darwin arm64 terraform version when desired version is equal or greater than 1.0.2 and you run MacOS on M1 CPU
  • 806d0c6 Merge branch 'datadrivers-feature/chdir-flag'
  • 39f7d0f Merge branch 'feature/chdir-flag' of git://github.com/datadrivers/terraform-switcher into datadrivers-feature/chdir-flag
  • 76ee4c0 Merge pull request #190 from warrensbox/develop
  • b9e4693 Merge pull request #191 from warrensbox/develop
  • 6924416 Merge pull request #193 from grimm26/show
  • 1a7aa80 Merge pull request #198 from spring-media/master
  • 48e8ed9 Merge pull request #202 from hlepesant/master
  • f8a3785 Merge pull request #205 from warrensbox/feature/remove-snap-groom-code
  • 7e72036 Merge pull request #206 from warrensbox/master
  • 09816b6 Refactor code - if version exist, simply change symlink
  • a3955b5 Update README.md
  • e3adcbc Update install.sh
  • 20ca883 Update lib/install.go
  • f51e56d Update lib/install.go
  • a13d3ae add darwin/arm64 in supported arch
  • 40b5968 add make install
  • 4601962 add snapsccrft option
  • df20be5 aded default chdir path, fixed typo
  • f20faca bump snapcraft
  • 9616cf0 compile last tag
  • e60bbda custom mirror option documentation
  • c7b1a83 testing SNAP_REAL_HOME
  • 03d377b testing snapcraft