diff --git a/plugin/interface_generator/main.go b/plugin/interface_generator/main.go index 763868f52e4..0a14a092b9d 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 24311131152..584f6bed958 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)