Cannot create Terraform documentation as per Plugin Development Guide

When I follow the docs @ Home - Plugin Development: SDKv2 | Terraform | HashiCorp Developer to create the documentation I run into the following

xxxx@xxxx-iMac terraform-provider-fram % go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs

cannot find package “.” in:
/Users/xxxxxx/go/src/github.com/darkedges/terraform-provider-fram/vendor/github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs

xxxx@xxxx-iMac terraform-provider-fram % go version

go version go1.16.5 darwin/amd64

I have followed the guide, but may have missed something.

Any ideas?

Regards
Nicholas Irving

I moved it away from $GOPATH/src, removed the vendors directory and updated to use in main.go

//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs

All seems to be working now.