From fc19bfa65033e9d1ea33d9a27aa26ebd73ddc941 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 30 Nov 2023 14:32:49 -0800 Subject: [PATCH] Update go.mod and go.work to 1.21 Code in build/soong is using new builtins like max, update go.work and go.mod to require 1.21 so that go test ./... works. Fixes: ui/status/ninja.go:193:25: max requires go1.21 or later (-lang was set to go1.20; check go.mod) Test: go test ./... Change-Id: I38f1a2298937db0d7c741b2183540fa3d02dac79 --- go.mod | 2 +- go.work | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 0a11bd2db..11749588a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module android/soong -go 1.20 +go 1.21 require ( github.com/google/blueprint v0.0.0 diff --git a/go.work b/go.work index 67f654908..7c6022be6 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.19 +go 1.21 use ( .