diff --git a/plugin/interface_generator/main.go b/plugin/interface_generator/main.go index 763868f52e..0a14a092b9 100644 --- a/plugin/interface_generator/main.go +++ b/plugin/interface_generator/main.go @@ -406,6 +406,7 @@ type hooksAdapter struct { func newAdapter(productHooks any) (*hooksAdapter, error) { a := &hooksAdapter{ implemented: make(map[int]struct{}), + productHooks: productHooks, } var tt reflect.Type ft := reflect.TypeOf(productHooks) diff --git a/plugin/product_hooks_generated.go b/plugin/product_hooks_generated.go index 2431113115..584f6bed95 100644 --- a/plugin/product_hooks_generated.go +++ b/plugin/product_hooks_generated.go @@ -121,7 +121,8 @@ type hooksAdapter struct { func newAdapter(productHooks any) (*hooksAdapter, error) { a := &hooksAdapter{ - implemented: make(map[int]struct{}), + implemented: make(map[int]struct{}), + productHooks: productHooks, } var tt reflect.Type ft := reflect.TypeOf(productHooks)