Skip to content

Commit eb66e13

Browse files
Use CGO_ENABLED=0 (slackhq#421)
Set `CGO_ENABLED` to 0 when building
1 parent a22c134 commit eb66e13

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626

2727
- Build against go 1.17. (#553)
2828

29+
- Build with CGO_ENABLED=0 set, to create more portable binaries. This could
30+
have an affect on DNS resolution if you rely on anything non-standard. (#421)
31+
2932
### Deprecated
3033

3134
- The `preferred_ranges` option has been supported as a replacement for

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ GOMINVERSION = 1.17
22
NEBULA_CMD_PATH = "./cmd/nebula"
33
GO111MODULE = on
44
export GO111MODULE
5+
CGO_ENABLED = 0
6+
export CGO_ENABLED
57

68
# Set up OS specific bits
79
ifeq ($(OS),Windows_NT)

0 commit comments

Comments
 (0)