From dd52a5408ced5c5d575ee5a2e0987d6b7e7bc08f Mon Sep 17 00:00:00 2001 From: jcd Date: Fri, 8 Nov 2024 01:17:31 +0000 Subject: [PATCH] go.mod: upgrade Go version to 1.23.3 Also updates analyzer.containsReflectValue to handle the new go/types.Alias type. --- analyzer/util.go | 4 ++++ go.mod | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/analyzer/util.go b/analyzer/util.go index 747238a..f5e7f1c 100644 --- a/analyzer/util.go +++ b/analyzer/util.go @@ -421,6 +421,10 @@ func containsReflectValue(t types.Type) bool { return false } seen[t] = struct{}{} + // If the unaliased type is different, use that. + if u := types.Unalias(t); u != t { + return rec(u) + } // If the underlying type is different, use that. if u := t.Underlying(); !types.Identical(t, u) { return rec(u) diff --git a/go.mod b/go.mod index 997e50a..119c468 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/google/capslock -go 1.22.0 +go 1.23.3 require ( github.com/fatih/color v1.18.0