Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit 37aa6c2

Browse files
author
Henry Wong
authored
[elastic] Add CGO_ENABLED=0 when we build the go lsp. (#86)
'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.
1 parent bf4dec8 commit 37aa6c2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.travis.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ install:
1818
git:
1919
depth: 1
2020

21-
env:
22-
- GO111MODULE=off GOPROXY=https://proxy.golang.org
23-
2421
before_install:
2522
- go get golang.org/x/sync/errgroup
2623
- go get golang.org/x/xerrors
@@ -31,6 +28,11 @@ matrix:
3128
include:
3229
- name: Unit Tests & Package | Linux x64
3330
os: linux
31+
env:
32+
- GO111MODULE=off
33+
- GOPROXY=https://proxy.golang.org
34+
- CGO_ENABLED=0
35+
- ARCH=x86_64
3436
script:
3537
- go test ./internal/lsp
3638
- mkdir build
@@ -83,6 +85,11 @@ matrix:
8385

8486
- name: Unit Tests & Package | OSX
8587
os: osx
88+
env:
89+
- GO111MODULE=off
90+
- GOPROXY=https://proxy.golang.org
91+
- CGO_ENABLED=0
92+
- ARCH=x86_64
8693
script:
8794
- go test ./internal/lsp
8895
- mkdir build

appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ environment:
1717
GOPATH: c:\gopath
1818
GO111MODULE: off
1919
GOPROXY: "https://proxy.golang.org"
20+
CGO_ENABLED: 0
2021
github_access_token:
2122
secure: h4ICNdm1D4g1klCMU6lQ7t92lwIrzo2HHzqc9MJpZdibgfNNFNGwywHWyBa0KPpL
2223
github_email:

0 commit comments

Comments
 (0)