@@ -32,8 +32,10 @@ func main() {
32
32
// Serpent has some types referenced in the codersdk.
33
33
// We want the referenced types generated.
34
34
referencePackages := map [string ]string {
35
- "github.com/coder/serpent" : "Serpent" ,
36
- "tailscale.com/derp" : "" ,
35
+ "github.com/coder/preview" : "" ,
36
+ "github.com/coder/serpent" : "Serpent" ,
37
+ "github.com/hashicorp/hcl/v2" : "Hcl" ,
38
+ "tailscale.com/derp" : "" ,
37
39
// Conflicting name "DERPRegion"
38
40
"tailscale.com/tailcfg" : "Tail" ,
39
41
"tailscale.com/net/netcheck" : "Netcheck" ,
@@ -88,7 +90,8 @@ func TypeMappings(gen *guts.GoParser) error {
88
90
gen .IncludeCustomDeclaration (map [string ]guts.TypeOverride {
89
91
"github.com/coder/coder/v2/codersdk.NullTime" : config .OverrideNullable (config .OverrideLiteral (bindings .KeywordString )),
90
92
// opt.Bool can return 'null' if unset
91
- "tailscale.com/types/opt.Bool" : config .OverrideNullable (config .OverrideLiteral (bindings .KeywordBoolean )),
93
+ "tailscale.com/types/opt.Bool" : config .OverrideNullable (config .OverrideLiteral (bindings .KeywordBoolean )),
94
+ "github.com/hashicorp/hcl/v2.Expression" : config .OverrideLiteral (bindings .KeywordUnknown ),
92
95
})
93
96
94
97
err := gen .IncludeCustom (map [string ]string {
0 commit comments