Skip to content

Commit

Permalink
fix: use correct directory when trying to load module
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnorris committed May 10, 2021
1 parent b428df5 commit 28270b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wrapper/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func getTerraformVersionConstraints(directory string) ([]version.Constraints, er
currentDirectory := directory

for {
module, diags := tfconfig.LoadModule(directory)
module, diags := tfconfig.LoadModule(currentDirectory)

if !diags.HasErrors() && len(module.RequiredCore) > 0 {
var allConstraints []version.Constraints
Expand Down

0 comments on commit 28270b4

Please sign in to comment.