Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running mockery with docker does not work with go 1.22 #754

Closed
1 of 5 tasks
ifross89 opened this issue Feb 9, 2024 · 0 comments · Fixed by #755
Closed
1 of 5 tasks

Running mockery with docker does not work with go 1.22 #754

ifross89 opened this issue Feb 9, 2024 · 0 comments · Fixed by #755

Comments

@ifross89
Copy link
Contributor

ifross89 commented Feb 9, 2024

Description

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

  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant