Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalBuildTags = []string{"encore_local", "encore_no_gcp", "encore_no_aws", "encore_no_azure"}
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
BuildTags []string
CgoEnabled bool
StaticLink bool
Debug bool
GOOS, GOARCH string
KeepOutput bool
Revision string
UncommittedChanges bool
// MainPkg is the path to the existing main package to use, if any.
MainPkg option.Option[paths.Pkg]
// Overrides to explicitly set the GoRoot and EncoreRuntime paths.
// if not set, they will be inferred from the current executable.
GoRoot option.Option[paths.FS]
EncoreRuntime option.Option[paths.FS]
// Logger allows a custom logger to be used by the various phases of the builder.
Logger option.Option[zerolog.Logger]
}
func DefaultBuildInfo ¶ added in v1.16.1
func DefaultBuildInfo() BuildInfo
DefaultBuildInfo returns a BuildInfo with default values. It can be modified afterwards.