vektra / mockery

A mock code autogenerator for Go
https://vektra.github.io/mockery/
BSD 3-Clause "New" or "Revised" License
5.8k stars 395 forks source link

upgrade golang.org/x/tools to fix a panic in go 1.22 #753

Closed viktorasm closed 4 months ago

viktorasm commented 4 months ago

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

Type of change

Version of Golang used when building/testing:

How Has This Been Tested?

Unit tests on master fail on Go 1.22, but work on 1.21. After the fix, both compilers are happy.

Narrowed it down to an internal panic in golang.org/x/tools, after upgrading to latest version of the lib and doing a go mod tidy, the crash went away. The lowest x/tools version that works is 1.13.

Checklist

LandonTClipp commented 4 months ago

Thanks for the fix, will get this merged now.