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 80d1ef4Copy full SHA for 80d1ef4
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 https://github.com/mitchellh/go-homedir/blob/af06845cf3004701891bf4fdb884bfe4920b3727/homedir.go#L58
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