Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49c35f6

Browse files
authoredNov 15, 2021
v1.3 release
Merge changes for v1.3 release
2 parents b57d8f4 + 2ca3e4a commit 49c35f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1528
-388
lines changed
 

‎Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ compile-lambda-linux-all:
2121
make ARCH=old compile-lambda-linux
2222

2323
compile-with-docker:
24-
docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.14 make ARCH=${ARCH} compile-lambda-linux
24+
docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.17 make ARCH=${ARCH} compile-lambda-linux
2525

2626
compile-lambda-linux:
2727
CGO_ENABLED=0 GOOS=linux GOARCH=${GO_ARCH_${ARCH}} go build -ldflags "${RELEASE_BUILD_LINKER_FLAGS}" -o ${DESTINATION_${ARCH}} ./cmd/aws-lambda-rie

‎cmd/aws-lambda-rie/main.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const (
2121
)
2222

2323
type options struct {
24-
LogLevel string `long:"log-level" default:"info" description:"log level"`
24+
LogLevel string `long:"log-level" default:"info" description:"log level"`
25+
InitCachingEnabled bool `long:"enable-init-caching" description:"Enable support for Init Caching"`
2526
}
2627

2728
func main() {
@@ -32,7 +33,11 @@ func main() {
3233
rapidcore.SetLogLevel(opts.LogLevel)
3334

3435
bootstrap, handler := getBootstrap(args, opts)
35-
sandbox := rapidcore.NewSandboxBuilder(bootstrap).AddShutdownFunc(context.CancelFunc(func() { os.Exit(0) })).SetExtensionsFlag(true)
36+
sandbox := rapidcore.
37+
NewSandboxBuilder(bootstrap).
38+
AddShutdownFunc(context.CancelFunc(func() { os.Exit(0) })).
39+
SetExtensionsFlag(true).
40+
SetInitCachingFlag(opts.InitCachingEnabled)
3641

3742
if len(handler) > 0 {
3843
sandbox.SetHandler(handler)
@@ -72,7 +77,7 @@ func getBootstrap(args []string, opts options) (*rapidcore.Bootstrap, string) {
7277
fmt.Sprintf("%s/bootstrap", currentWorkingDir),
7378
}
7479

75-
if !isBootstrapFileExist(bootstrapLookupCmd[0]) {
80+
if !isBootstrapFileExist(bootstrapLookupCmd[0]) {
7681
var bootstrapCmdCandidates = []string{
7782
optBootstrap,
7883
runtimeBootstrap,

0 commit comments

Comments
 (0)
Please sign in to comment.