How can you tell Go to import a package from a different location?
Use a replace directory.
go mod edit -replace example.com/greetings=../greetings
Use a replace directive in go.mod.
Change the import path.
Use a proxy.