Used go1.13 and tried using kustomize/v3.8.0, v3.8.1 and 3.8.2 (compiled with go1.13) and compiled the plugin also with go1.13
on running the kustomize build it gives the following error:
"Attempting plugin load from 'kustomize/plugin/secretgenerator/SecretGenerator.so'
Error: loading generator plugins: plugin kustomize/plugin/secretgenerator/SecretGenerator.so fails to load: plugin.Open("kustomize/plugin/secretgenerator/SecretGenerator"): plugin was built with a different version of package sigs.k8s.io/kustomize/api/resid"