From f3f961a15801d572d7ba19c2dce63c652b617b62 Mon Sep 17 00:00:00 2001 From: Henry Wong Date: Tue, 3 Sep 2019 17:17:46 +0800 Subject: [PATCH] [elastic] Add CGO_ENABLED=0 when we build the go lsp. 'CGO_ENABLED=0' will enable a full statically linked binary to get rid of the libc dependency. This option will make the go lsp more portable. --- .travis.yml | 13 ++++++++++--- appveyor.yml | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 205d19eaf1c..979292aa173 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,9 +18,6 @@ install: git: depth: 1 -env: - - GO111MODULE=off GOPROXY=https://proxy.golang.org - before_install: - go get golang.org/x/sync/errgroup - go get golang.org/x/xerrors @@ -31,6 +28,11 @@ matrix: include: - name: Unit Tests & Package | Linux x64 os: linux + env: + - GO111MODULE=off + - GOPROXY=https://proxy.golang.org + - CGO_ENABLED=0 + - ARCH=x86_64 script: - go test ./internal/lsp - mkdir build @@ -83,6 +85,11 @@ matrix: - name: Unit Tests & Package | OSX os: osx + env: + - GO111MODULE=off + - GOPROXY=https://proxy.golang.org + - CGO_ENABLED=0 + - ARCH=x86_64 script: - go test ./internal/lsp - mkdir build diff --git a/appveyor.yml b/appveyor.yml index 0e211afe3d6..3b1c9684294 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,6 +17,7 @@ environment: GOPATH: c:\gopath GO111MODULE: off GOPROXY: "https://proxy.golang.org" + CGO_ENABLED: 0 github_access_token: secure: h4ICNdm1D4g1klCMU6lQ7t92lwIrzo2HHzqc9MJpZdibgfNNFNGwywHWyBa0KPpL github_email: