Skip to content

Commit 5abc367

Browse files
authored
Merge pull request #224 from hootsuite/env-fix
Env fix. Release 0.2.3
2 parents 8581e84 + 3ce64bc commit 5abc367

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# v0.2.3
2+
## Features
3+
None
4+
5+
## Bug Fixes
6+
* Use `env` instead of `workspace` for Terraform 0.9.*
7+
8+
## Backwards Incompatibilities / Notes:
9+
None
10+
11+
## Downloads
12+
* [atlantis_darwin_amd64.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_darwin_amd64.zip)
13+
* [atlantis_linux_386.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_linux_386.zip)
14+
* [atlantis_linux_amd64.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_linux_amd64.zip)
15+
* [atlantis_linux_arm.zip](https://github.com/hootsuite/atlantis/releases/download/v0.2.3/atlantis_linux_arm.zip)
16+
117
# v0.2.2
218
## Features
319
* Terraform 0.11 is now supported ([#219](https://github.com/hootsuite/atlantis/pull/219))

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
func main() {
1010
v := viper.New()
11-
v.Set("version", "0.2.2")
11+
v.Set("version", "0.2.3")
1212

1313
// We're creating commands manually here rather than using init() functions
1414
// (as recommended by cobra) because it makes testing easier.

server/events/terraform/terraform_client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ func (c *DefaultClient) Init(log *logging.SimpleLogger, path string, workspace s
118118
return outputs, err
119119
}
120120

121-
// In 0.10 the env command was renamed to workspace.
122121
workspaceCommand := "workspace"
123122
if zeroPointNine.Check(version) {
124-
workspaceCommand = "workspace"
123+
// In 0.9.* `env` was used instead of `workspace`
124+
workspaceCommand = "env"
125125
}
126126

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

0 commit comments

Comments
 (0)