Use local provider instead from providers repository

Hello

I’m trying write some feature to the vsphere provider. I have local version and I want to use version with my changes instead of original version.
How can I do this? Because terraform init install original provider.
Should I put my version of provider to the ~/.terraform.d/plugins dirrectory?