Skip to content

Commit

Permalink
add env var for PluginCacheMayBreakDependencyLockFile
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed Jun 14, 2024
1 parent c88db3c commit 156e889
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions server/neptune/workflows/activities/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"bytes"
"context"
"fmt"
"github.com/runatlantis/atlantis/server/neptune/workflows/activities/command"
"io"
"path/filepath"
"strings"
"sync"

"github.com/runatlantis/atlantis/server/neptune/workflows/activities/command"

key "github.com/runatlantis/atlantis/server/neptune/context"
"go.temporal.io/sdk/activity"

Expand All @@ -23,11 +24,12 @@ import (
)

const (
TFInAutomation = "TF_IN_AUTOMATION"
TFInAutomationVal = "true"
AtlantisTerraformVersion = "ATLANTIS_TERRAFORM_VERSION"
Dir = "DIR"
TFPluginCacheDir = "TF_PLUGIN_CACHE_DIR"
TFInAutomation = "TF_IN_AUTOMATION"
TFInAutomationVal = "true"
AtlantisTerraformVersion = "ATLANTIS_TERRAFORM_VERSION"
Dir = "DIR"
TFPluginCacheDir = "TF_PLUGIN_CACHE_DIR"
PluginCacheMayBreakDependencyLockFile = "TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE"
)

// TerraformClientError can be used to assert a non-retryable error type for
Expand Down Expand Up @@ -419,4 +421,6 @@ func (t *terraformActivities) addTerraformEnvs(envs map[string]string, path stri
envs[AtlantisTerraformVersion] = tfVersion.String()
envs[Dir] = path
envs[TFPluginCacheDir] = t.CacheDir
// This is
envs[PluginCacheMayBreakDependencyLockFile] = "true"
}

0 comments on commit 156e889

Please sign in to comment.