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

Commit 396da9d

Browse files
author
Henry Wong
committed
[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.
1 parent bf4dec8 commit 396da9d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ git:
1919
depth: 1
2020

2121
env:
22-
- GO111MODULE=off GOPROXY=https://proxy.golang.org
22+
- GO111MODULE=off
23+
- GOPROXY=https://proxy.golang.org
24+
- CGO_ENABLED=0
25+
- ARCH=x86_64
2326

2427
before_install:
2528
- go get golang.org/x/sync/errgroup

appveyor.yml

Lines changed: 1 addition & 0 deletions
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)