We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae79d6d commit aa5b825Copy full SHA for aa5b825
init.go
@@ -25,6 +25,8 @@ func init() {
25
},
26
Type: function.StaticReturnType(cty.String),
27
Impl: func(args []cty.Value, retType cty.Type) (cty.Value, error) {
28
+ // This code is taken directly from "github.com/mitchellh/go-homedir"
29
+ // The only change is that instead of expanding the path, we return an error
30
path := args[0].AsString()
31
if len(path) == 0 {
32
return cty.StringVal(path), nil
0 commit comments