Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all usage of get-plugins=false which is removed in 0.15.0 #1618

Merged
merged 1 commit into from Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/dependency.go
Expand Up @@ -639,7 +639,7 @@ func runTerraformInitForDependencyOutput(terragruntOptions *options.TerragruntOp
initTGOptions := terragruntOptions.Clone(targetConfig)
initTGOptions.WorkingDir = workingDir
initTGOptions.ErrWriter = &stderr
err := shell.RunTerraformCommand(initTGOptions, "init", "-get=false", "-get-plugins=false")
err := shell.RunTerraformCommand(initTGOptions, "init", "-get=false")
if err != nil {
terragruntOptions.Logger.Debugf("Ignoring expected error from dependency init call")
terragruntOptions.Logger.Debugf("Init call stderr:")
Expand Down
1 change: 0 additions & 1 deletion docs/_docs/02_features/keep-your-cli-flags-dry.md
Expand Up @@ -129,7 +129,6 @@ terraform {
]

arguments = [
"-get-plugins=false",
"-plugin-dir=/my/terraform/plugin/dir",
]
}
Expand Down
4 changes: 2 additions & 2 deletions test/integration_test.go
Expand Up @@ -2136,7 +2136,7 @@ func TestYamlDecodeRegressions(t *testing.T) {
// module has been destroyed.
func TestDependencyOutputOptimization(t *testing.T) {
expectOutputLogs := []string{
`Running command: terraform init -get=false -get-plugins=false prefix=\[.*fixture-get-output/nested-optimization/dep\]`,
`Running command: terraform init -get=false prefix=\[.*fixture-get-output/nested-optimization/dep\]`,
}
dependencyOutputOptimizationTest(t, "nested-optimization", true, expectOutputLogs)
}
Expand All @@ -2150,7 +2150,7 @@ func TestDependencyOutputOptimizationSkipInit(t *testing.T) {

func TestDependencyOutputOptimizationNoGenerate(t *testing.T) {
expectOutputLogs := []string{
`Running command: terraform init -get=false -get-plugins=false prefix=\[.*fixture-get-output/nested-optimization-nogen/dep\]`,
`Running command: terraform init -get=false prefix=\[.*fixture-get-output/nested-optimization-nogen/dep\]`,
}
dependencyOutputOptimizationTest(t, "nested-optimization-nogen", true, expectOutputLogs)
}
Expand Down