mirror of https://github.com/golang/go.git
cmd/go: mention that binary packages are going away
Updates #28152 Fixes #29927 Change-Id: Iea692c90074d057a1733e98bca3928e8f3569585 Reviewed-on: https://go-review.googlesource.com/c/159557 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
8b7cf898af
commit
8c10ce164f
|
|
@ -1598,14 +1598,14 @@
|
||||||
// line comment. See the go/build package documentation for
|
// line comment. See the go/build package documentation for
|
||||||
// more details.
|
// more details.
|
||||||
//
|
//
|
||||||
// Non-test Go source files can also include a //go:binary-only-package
|
// Through the Go 1.12 release, non-test Go source files can also include
|
||||||
// comment, indicating that the package sources are included
|
// a //go:binary-only-package comment, indicating that the package
|
||||||
// for documentation only and must not be used to build the
|
// sources are included for documentation only and must not be used to
|
||||||
// package binary. This enables distribution of Go packages in
|
// build the package binary. This enables distribution of Go packages in
|
||||||
// their compiled form alone. Even binary-only packages require
|
// their compiled form alone. Even binary-only packages require accurate
|
||||||
// accurate import blocks listing required dependencies, so that
|
// import blocks listing required dependencies, so that those
|
||||||
// those dependencies can be supplied when linking the resulting
|
// dependencies can be supplied when linking the resulting command.
|
||||||
// command.
|
// Note that this feature is scheduled to be removed after the Go 1.12 release.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// The go.mod file
|
// The go.mod file
|
||||||
|
|
|
||||||
|
|
@ -636,14 +636,14 @@ at the first item in the file that is not a blank line or //-style
|
||||||
line comment. See the go/build package documentation for
|
line comment. See the go/build package documentation for
|
||||||
more details.
|
more details.
|
||||||
|
|
||||||
Non-test Go source files can also include a //go:binary-only-package
|
Through the Go 1.12 release, non-test Go source files can also include
|
||||||
comment, indicating that the package sources are included
|
a //go:binary-only-package comment, indicating that the package
|
||||||
for documentation only and must not be used to build the
|
sources are included for documentation only and must not be used to
|
||||||
package binary. This enables distribution of Go packages in
|
build the package binary. This enables distribution of Go packages in
|
||||||
their compiled form alone. Even binary-only packages require
|
their compiled form alone. Even binary-only packages require accurate
|
||||||
accurate import blocks listing required dependencies, so that
|
import blocks listing required dependencies, so that those
|
||||||
those dependencies can be supplied when linking the resulting
|
dependencies can be supplied when linking the resulting command.
|
||||||
command.
|
Note that this feature is scheduled to be removed after the Go 1.12 release.
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue