See: - https://github.com/golang/go/issues/69582

Comment From: gabyhelp

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: adonovan

Renaming a package declaration only appears to work within the same grandparent directory (e,g. package a -> package b). We should support renamings to arbitrary new directories (e.g. a -> ../c or example.com/d).

See also: - https://github.com/golang/go/issues/40341#issuecomment-1230741206