Skip to content

Commit

Permalink
Merge pull request #224 from hootsuite/env-fix
Browse files Browse the repository at this point in the history
Env fix. Release 0.2.3
  • Loading branch information
lkysow authored Dec 22, 2017
2 parents 8581e84 + 3ce64bc commit 5abc367
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v0.2.3
## Features
None

## Bug Fixes
* Use `env` instead of `workspace` for Terraform 0.9.*

## Backwards Incompatibilities / Notes:
None

## Downloads
* [atlantis_darwin_amd64.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_darwin_amd64.zip)
* [atlantis_linux_386.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_linux_386.zip)
* [atlantis_linux_amd64.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_linux_amd64.zip)
* [atlantis_linux_arm.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_linux_arm.zip)

# v0.2.2
## Features
* Terraform 0.11 is now supported ([#219](https://github.com/hootsuite/atlantis/pull/219))
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func main() {
v := viper.New()
v.Set("version", "0.2.2")
v.Set("version", "0.2.3")

// We're creating commands manually here rather than using init() functions
// (as recommended by cobra) because it makes testing easier.
Expand Down
4 changes: 2 additions & 2 deletions server/events/terraform/terraform_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ func (c *DefaultClient) Init(log *logging.SimpleLogger, path string, workspace s
return outputs, err
}

// In 0.10 the env command was renamed to workspace.
workspaceCommand := "workspace"
if zeroPointNine.Check(version) {
workspaceCommand = "workspace"
// In 0.9.* `env` was used instead of `workspace`
workspaceCommand = "env"
}

output, err = c.RunCommandWithVersion(log, path, []string{workspaceCommand, "select", "-no-color", workspace}, version, workspace)
Expand Down

0 comments on commit 5abc367

Please sign in to comment.