Skip to content

Commit

Permalink
Merge pull request #2 from kaloom/fix-build-for-go-1.13
Browse files Browse the repository at this point in the history
Fix build for go 1.13.x
  • Loading branch information
kmabda authored Feb 10, 2020
2 parents 4c7ebcb + 8790a9a commit 238b393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def buildDate = new Date().format("yyyy-MM-dd_HH:mm:ss.sss_Z", TimeZone.getTimeZ
def ldflags = "-ldflags \"-X main.branch=${gitBranch} -X main.commit=${gitCommit} -X main.date=${buildDate}\""

build {
environment GO111MODULE: 'off'
go "build ${ldflags} -o ${project.binDir}/${project.execName} ${project.packageRepo}/${project.execName}"
}

Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fi
export GO15VENDOREXPERIMENT=1
export GOBIN=${PWD}/bin
export GOPATH=${PWD}/${GOGRADLE_PROJECT_PATH}
export GO111MODULE=off

echo "Building $exec_name"
go install -ldflags "${LDFLAGS}" "$@" ${repo_path}/${exec_name}

0 comments on commit 238b393

Please sign in to comment.