Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Version specifies the app version to encode // into the app metadata. Version string // WorkingDir is the path relative to the app root from which the user // is running the build. It is used to resolve relative filenames. // If empty it defaults to "." which resolves to the app root. WorkingDir string // GOOS sets the GOOS to build for, if nonempty. GOOS string // CgoEnabled decides whether to build with cgo enabled. CgoEnabled bool // Debug specifies whether to compile in debug mode. Debug bool // BuildTags are additional build tags to specify when building. BuildTags []string // StaticLink enables static linking of C libraries. StaticLink bool // EncoreRuntimePath if set, causes builds to introduce a temporary replace directive // that replaces the module path to the "encore.dev" module. // This lets us replace the implementation for building. EncoreRuntimePath string // EncoreGoRoot is the path to the Encore GOROOT. EncoreGoRoot string // Test is the specific settings for running tests. Test *TestConfig // If Parse is set, the build will skip parsing the app again // and use the information provided. Parse *parser.Result // KeepOutput keeps the temporary build directory from being deleted in the case of failure. KeepOutput bool }
Click to show internal directories.
Click to hide internal directories.