Skip to content

Commit c91a64a

Browse files
chore(deps): use go version from go.mod and update to v1.26.2 (#91)
* chore(deps): update dependency go to v1.26.2 * read go version from `go.mod` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristian Pallarés <cristian.pallares@localstack.cloud>
1 parent 377f877 commit c91a64a

5 files changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v6
1919
with:
20-
go-version: '1.26.1'
20+
go-version-file: go.mod
2121

2222
- name: Run tests
2323
run: make tests-with-docker
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up Go
3232
uses: actions/setup-go@v6
3333
with:
34-
go-version: '1.26.1'
34+
go-version-file: go.mod
3535

3636
- name: Build
3737
env:

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ GO_ARCH_arm64 := arm64
1212
DESTINATION_x86_64 := bin/${BINARY_NAME}-x86_64
1313
DESTINATION_arm64 := bin/${BINARY_NAME}-arm64
1414

15-
run_in_docker = docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.26.1 $(1)
15+
GO_VERSION := $(shell grep '^go ' go.mod | awk '{print $$2}')
16+
run_in_docker = docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:$(GO_VERSION) $(1)
1617

1718
compile-with-docker-all:
1819
$(call run_in_docker, make compile-lambda-linux-all)

debugging/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Golang EOL overview: https://endoflife.date/go
2-
DOCKER_GOLANG_IMAGE ?= golang:1.26.1-bookworm
2+
GO_VERSION := $(shell grep '^go ' ../go.mod | awk '{print $$2}')
3+
DOCKER_GOLANG_IMAGE ?= golang:$(GO_VERSION)-bookworm
34

45
# On ARM hosts, use: make ARCH=arm64 build-init
56
# Check host architecture: uname -m

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aws/aws-lambda-runtime-interface-emulator
22

3-
go 1.26.1
3+
go 1.26.2
44

55
require (
66
github.com/aws/aws-lambda-go v1.52.0

renovate.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
"rangeStrategy": "bump",
1212
"groupName": "Go toolchain"
1313
},
14-
{
15-
"matchManagers": ["github-actions"],
16-
"matchDepNames": ["go"],
17-
"groupName": "Go toolchain"
18-
},
1914
{
2015
"matchManagers": ["gomod"],
2116
"excludePackageNames": ["go"],

0 commit comments

Comments
 (0)