Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

running "mockgen": exec: "mockgen": executable file not found in $PATH #642

Closed
@vitaly-zdanevich

Description

@vitaly-zdanevich

I have this error on go generate ./...

BUT

$ mockgen --version
v1.6.0

$ which mockgen
/home/vitaly/go/bin/mockgen

First line of the file from error:
//go:generate mockgen -source=interface.go -destination=interface_mock.go -package=alarms

In go.mod I have:
github.com/golang/mock v1.6.0

go mod tidy do nothing.

go 1.17.8

Gentoo Linux

Bash

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions