Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func init() {
},
Type: function.StaticReturnType(cty.String),
Impl: func(args []cty.Value, retType cty.Type) (cty.Value, error) {
// This code is taken directly from "github.com/mitchellh/go-homedir"
// The only change is that instead of expanding the path, we return an error
path := args[0].AsString()
if len(path) == 0 {
return cty.StringVal(path), nil
Expand Down
Loading