Bump minimum version of go to 1.22

This fixes a pointer bug in our broker sqs code by enabling the loopvar
feature https://go.dev/wiki/LoopvarExperiment

See tpo/anti-censorship/pluggable-transports/snowflake#40363
This commit is contained in:
Cecylia Bocovich 2025-03-15 11:00:10 -04:00
parent fdac01ca90
commit 116fe9f578
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
2 changed files with 5 additions and 5 deletions

View file

@ -152,8 +152,8 @@ android:
- go get golang.org/x/mobile/bind
- gomobile bind -v -target=android $REPRODUCIBLE_FLAGS .
go-1.21:
image: ${DOCKER_REGISTRY_URL}/golang:1.21-$DEBIAN_STABLE
go-1.22:
image: ${DOCKER_REGISTRY_URL}/golang:1.22-$DEBIAN_STABLE
<<: *golang-docker-debian-template
<<: *test-template
script:
@ -174,7 +174,7 @@ debian-testing:
- *go-test
shadow-integration:
image: ${DOCKER_REGISTRY_URL}/golang:1.21-$DEBIAN_STABLE
image: ${DOCKER_REGISTRY_URL}/golang:1.22-$DEBIAN_STABLE
variables:
SHADOW_VERSION: "193924aae0dab30ffda0abe29467f552949849fa"
TGEN_VERSION: "v1.1.2"
@ -263,7 +263,7 @@ shadow-integration:
generate_tarball:
stage: deploy
image: ${DOCKER_REGISTRY_URL}/golang:1.21-$DEBIAN_STABLE
image: ${DOCKER_REGISTRY_URL}/golang:1.22-$DEBIAN_STABLE
rules:
- if: $CI_COMMIT_TAG
script:

2
go.mod
View file

@ -1,6 +1,6 @@
module gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2
go 1.21
go 1.22
require (
github.com/aws/aws-sdk-go-v2 v1.36.1