Skip to content

Commit 7aa599e

Browse files
authored
feat: disable cgo (#292)
* feat: disable cgo build the extension with cgo disabled, to ensure there are no glibc/ABI compatibility issues between the build host and the target Lambda execution environment. * changelog: add changelog entry
1 parent 09c8a52 commit 7aa599e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ https://github.com/elastic/apm-aws-lambda/compare/v1.1.0...main[View commits]
2828
2929
[float]
3030
===== Features
31+
- Disable CGO to prevent libc/ABI compatibility issues {lambda-pull}292[292]
3132
3233
[float]
3334
===== Bug fixes

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ lint:
4949
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.48.0 run
5050

5151
build: check-licenses NOTICE.txt
52-
GOOS=linux go build -o bin/extensions/apm-lambda-extension main.go
52+
CGO_ENABLED=0 GOOS=linux go build -o bin/extensions/apm-lambda-extension main.go
5353
cp NOTICE.txt bin/NOTICE.txt
5454
cp dependencies.asciidoc bin/dependencies.asciidoc
5555

0 commit comments

Comments
 (0)