Documentation
¶
Overview ¶
Package buildflags is the one place the build tags and linker flags of a tt binary are spelled out. The magefile builds tt with them and tt binary build tt builds a distribution of tt with them, so the two cannot drift apart.
Index ¶
Constants ¶
View Source
const Env = "TT_CLI_BUILD_SSL"
Env is the environment variable that selects the TLS implementation tt is built with.
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported build type")
ErrUnsupported reports a TLS implementation tt cannot be built with.
Functions ¶
This section is empty.
Types ¶
type SSL ¶
type SSL string
SSL is the TLS implementation a tt binary is built with.
const ( // Default is TLS in pure Go: the binary needs no OpenSSL and no cgo. Default SSL = "default" // OpenSSL links the OpenSSL of the machine the binary runs on. OpenSSL SSL = "openssl" // OpenSSLStatic links OpenSSL into the binary, which is static. OpenSSLStatic SSL = "openssl_static" )
The TLS implementations.
type Version ¶
type Version struct {
// Tag is the tag the commit is at, or past it as git describe --tags
// prints the commit.
Tag string
// Commit is the abbreviated hash of the commit.
Commit string
// CommitsSinceTag is the number of commits since the tag, in decimal.
CommitsSinceTag string
// Label is the label of the build.
Label string
}
Version is the version a tt binary is stamped with, as git describe tells it of the checkout of tt the binary is built from.
Click to show internal directories.
Click to hide internal directories.