Skip to content

Docker image not built with Go 1.24 #917

@skwair

Description

@skwair

Hello!

I'm using mockery as a container for a project I recently updated to Go 1.24, and it seems that the Dockerfile was not updated to run in a Go 1.24 environment, making mockery fail to run in such projects:

$ docker run --rm -u $(id -u):$(id -g) -v $(pwd):/src -w /src vektra/mockery:v2.52.2
13 Feb 25 10:40 UTC INF Starting mockery dry-run=false version=v2.52.2
13 Feb 25 10:40 UTC INF Using config: /src/.mockery.yaml dry-run=false version=v2.52.2
failed to discover recursive packages: failed to get subpackages: failed to load packages: err: exit status 1: stderr: go: go.mod requires go >= 1.24.0 (running go 1.23.6; GOTOOLCHAIN=local)

Would it make sense to also bumb the Go version used by the containerized version of mockery?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions