Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const (

// const and vars used by magefile.
const (
buildMode = "pie"
binaryName = "fleet-server"
binaryExe = "fleet-server.exe"

Expand Down Expand Up @@ -695,7 +696,6 @@ func (Check) All() {
// FIPS creates a FIPS capable binary.
func (Build) Local() error {
env := environMap()
env["CGO_ENABLED"] = "0"
if isFIPS() {
addFIPSEnvVars(env)
}
Expand Down Expand Up @@ -729,7 +729,6 @@ func goBuild(osArg, archArg string, cover bool) error {
env := environMap()
env["GOOS"] = osArg
env["GOARCH"] = archArg
env["CGO_ENABLED"] = "0"
distArr := []string{"fleet-server"}
if isFIPS() {
addFIPSEnvVars(env)
Expand All @@ -755,6 +754,7 @@ func goBuild(osArg, archArg string, cover bool) error {
"-tags=" + getTagsString(),
"-gcflags=" + getGCFlags(),
"-ldflags=" + getLDFlags(),
"-buildmode=" + buildMode,
"-o", outFile,
}
if cover {
Expand Down