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