On Thu, Mar 4, 2021 at 12:55 AM Michael Ellis <michael.f.el...@gmail.com>
wrote:

> Thanks even though it's not the answer I was hoping for.  Seems to me that
> since the Go Authors have accorded special status to directories named
> "internal"  the module mechanism should recognize references to it and not
> require a globally unique path string.
>

Maybe. There seem to be few downsides. Then again, your case is also fairly
special.

On Thu, Mar 4, 2021 at 3:34 AM 'Bryan C. Mills' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> You should be able to use a `replace` directive to replace the full path "
> github.com/Michael-F-Ellis/skeleton/internal/common" or similar.


Using replace would still mean that a module doesn't work, when used as a
library. Generally, I feel that `replace` is being used for more and more
things it wasn't designed for, leading to more and more friction and
problems. I don't think we should encourage more off-label uses.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAEkBMfF320_npjzCW4NmPRqFm6FWSyXQ1abYE9DVuF95_UHSRQ%40mail.gmail.com.

Reply via email to