You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using mockery via docker does not work on projects using go 1.22.
An example of the error is:
err: exit status 1: stderr: go: go.mod requires go >= 1.22 (running go 1.21.7; GOTOOLCHAIN=local)
09 Feb 24 10:19 UTC ERR unable to parse packages error="err: exit status 1: stderr: go: go.mod requires go >= 1.22 (running go 1.21.7; GOTOOLCHAIN=local)\n" dry-run=false version=v2.40.2
This happens because the toolchain in the Dockerfile is still at go 1.21.
Mockery Version
v2.40.2
Golang Version
1.22
NOTE: Please upgrade to the latest golang version before submitting tickets!
Installation Method
Binary Distribution
Docker
brew
go install
Other: [specify]
Steps to Reproduce
attempt to run mockery via docker on a go 1.22 codebase, e.g. docker run -v $PWD:/src -w /src vektra/mockery:v2.40.2
Expected Behavior
The command to run successfully
Actual Behavior
An error occurs shown above
The text was updated successfully, but these errors were encountered:
Description
Currently using mockery via docker does not work on projects using go 1.22.
An example of the error is:
This happens because the toolchain in the Dockerfile is still at go 1.21.
Mockery Version
v2.40.2
Golang Version
1.22
Installation Method
Steps to Reproduce
docker run -v $PWD:/src -w /src vektra/mockery:v2.40.2
Expected Behavior
The command to run successfully
Actual Behavior
An error occurs shown above
The text was updated successfully, but these errors were encountered: