Cannot create Terraform documentation as per Plugin Development Guide

When I follow the docs @ Release and Publish a Provider to the Terraform Registry | Terraform - HashiCorp Learn to create the documentation I run into the following

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

cannot find package “.” in:

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?

Nicholas Irving

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

//go:generate go run

All seems to be working now.