From 2afb7746c29595fc593bf2d00e0118014e1735dc Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Thu, 23 May 2024 11:25:19 -0700 Subject: [PATCH] Bump go.mod file to go 1.22 When building with blueprint, go 1.22 will be used, but if you used go build or go test manually, the version in the go.mod will be used. Go 1.22 has a subtle change that we want to make sure we're always using: https://go.dev/blog/loopvar-preview Bug: 330574836 Test: Presubmits Change-Id: Idf46b77c4f817345c1f9aca039d8735bb101967f --- go.mod | 2 +- go.work | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 11749588a..13834fc72 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module android/soong -go 1.21 +go 1.22 require ( github.com/google/blueprint v0.0.0 diff --git a/go.work b/go.work index 7c6022be6..9a7e6db75 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.21 +go 1.22 use ( .