On Wed, Aug 28, 2019 at 5:53 AM <
w1252...@gmail.com> wrote:
>
> As we know, Go 1.13 will drop support for binary-only packages. it seems we have to use buildmode=plugin/archive if we want to build go archive to provide to others.
>
> when I try go buildmode=archive or buildmode=shared(go 1.12, go module project), it throw error like cannot use packages ... from different roots, i want to ask if i do something wrong, or it can't support well with 1.12?
Using -buildmode=archive or -buildmode=shared isn't a way to step
around the restrictions on binary packages. Now that support for
binary packages has been removed, the "go build" process inherently
expects to be able to see the source code of a package.
Ian