File tree
Expand file treeCollapse file tree2 files changed
+9
-6
lines changed Expand file treeCollapse file tree2 files changed
+9
-6
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -10,30 +10,33 @@ DESTINATION_old:= bin/${BINARY_NAME}
|
10 | 10 | DESTINATION_x86_64 := bin/${BINARY_NAME}-x86_64
|
11 | 11 | DESTINATION_arm64 := bin/${BINARY_NAME}-arm64
|
12 | 12 |
|
| 13 | +run_in_docker = docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.22 $(1) |
| 14 | + |
13 | 15 | compile-with-docker-all:
|
14 |
| -make ARCH=x86_64 compile-with-docker |
15 |
| -make ARCH=arm64 compile-with-docker |
16 |
| -make ARCH=old compile-with-docker |
| 16 | +$(call run_in_docker, make compile-lambda-linux-all) |
17 | 17 |
|
18 | 18 | compile-lambda-linux-all:
|
19 | 19 | make ARCH=x86_64 compile-lambda-linux
|
20 | 20 | make ARCH=arm64 compile-lambda-linux
|
21 | 21 | make ARCH=old compile-lambda-linux
|
22 | 22 |
|
23 | 23 | compile-with-docker:
|
24 |
| -docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.21 make ARCH=${ARCH} compile-lambda-linux |
| 24 | +$(call run_in_docker, make ARCH=${ARCH} compile-lambda-linux) |
25 | 25 |
|
26 | 26 | compile-lambda-linux:
|
27 | 27 | CGO_ENABLED=0 GOOS=linux GOARCH=${GO_ARCH_${ARCH}} go build -buildvcs=false -ldflags "${RELEASE_BUILD_LINKER_FLAGS}" -o ${DESTINATION_${ARCH}} ./cmd/aws-lambda-rie
|
28 | 28 |
|
| 29 | +tests-with-docker: |
| 30 | +$(call run_in_docker, make tests) |
| 31 | + |
29 | 32 | tests:
|
30 | 33 | go test ./...
|
31 | 34 |
|
32 | 35 | integ-tests-and-compile: tests
|
33 | 36 | make compile-lambda-linux-all
|
34 | 37 | make integ-tests
|
35 | 38 |
|
36 |
| -integ-tests-with-docker: tests |
| 39 | +integ-tests-with-docker: tests-with-docker |
37 | 40 | make compile-with-docker-all
|
38 | 41 | make integ-tests
|
39 | 42 |
|
|
Original file line number | Diff line number | Diff line change |
---|
|
1 | 1 | module go.amzn.com
|
2 | 2 |
|
3 |
| -go 1.21 |
| 3 | +go 1.22 |
4 | 4 |
|
5 | 5 | require (
|
6 | 6 | .com/aws/aws-lambda-go v1.46.0
|
|
You can’t perform that action at this time.
0 commit comments