Rebuilding terraform-provider-aws with custom aws-sdk-go

Hello everyone, I am able to rebuild terraform-provider-aws without any problem. However I would like to test a slight modification in aws-sdk-go to see the impact on this binary. I tried to find my way around rebuilding the entire provider using these modifications but I am not really familiar with this kind of inter-dependency, vendor based rebuilding (using go1.11/1.12). Could someone please help ? Many thanks in advance.

Just found out that go install -mod vendor does the trick