Hi All,

According to the documentation 
<https://golang.org/pkg/go/build/#hdr-Binary_Only_Packages>, the 
//go:binary-only-package directive is only used when the file is "not 
excluded by build constraints." However, I have the following source:

// +build !build_source

//go:binary-only-package

package internal

and when compiling with "go build -tags build_source" (I haven't built the 
binaries yet), I get the error, "missing or invalid package binary for 
binary-only package ..."

Am I doing something wrong? Thanks!

Cheers,
Josh

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to