Skip to content

Commit

Permalink
fix : read iac files from WorkPath (chdir proxy flag) #249
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Vaumoron <[email protected]>
  • Loading branch information
dvaumoron committed Sep 9, 2024
1 parent 5b1a4a7 commit 420b3c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion versionmanager/semantic/parser/iac/iacparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package iacparser

import (
"os"
"path/filepath"
"strings"

"github.com/hashicorp/go-hclog"
Expand Down Expand Up @@ -95,7 +96,7 @@ func GatherRequiredVersion(conf *config.Config, exts []ExtDescription) ([]string
name := cleanedName + ext.Value
foundFiles = append(foundFiles, name)

parsedFile, diags = ext.Parser(name)
parsedFile, diags = ext.Parser(filepath.Join(conf.WorkPath, name))
if diags.HasErrors() {
return nil, diags
}
Expand Down

0 comments on commit 420b3c3

Please sign in to comment.