From 78a0873623df9df50a9b264a6edf4ba899fcd0c2 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 15 Dec 2024 07:08:57 +0100 Subject: [PATCH 1/2] chore: break the CI --- pkg/analyzer/analyzer_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/analyzer/analyzer_test.go b/pkg/analyzer/analyzer_test.go index 71475db..bd34943 100644 --- a/pkg/analyzer/analyzer_test.go +++ b/pkg/analyzer/analyzer_test.go @@ -1,3 +1,5 @@ +//go:debug gotypesalias=1 + package analyzer_test import ( From 04b5c1e99691fd66775540ade977142716be9617 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 15 Dec 2024 07:09:24 +0100 Subject: [PATCH 2/2] fix: type aliases --- pkg/analyzer/analyzer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/analyzer.go b/pkg/analyzer/analyzer.go index 5507d95..703cc1c 100644 --- a/pkg/analyzer/analyzer.go +++ b/pkg/analyzer/analyzer.go @@ -125,7 +125,7 @@ const ( ) func (n *nilNil) isDangerNilType(t types.Type) (bool, zeroValue) { - switch v := t.(type) { + switch v := types.Unalias(t).(type) { case *types.Pointer: return n.checkedTypes.Contains(ptrType), zeroValueNil