Closed jokaorgua closed 1 year ago
Does the same thing happen if you run the mockery binary directly?
Does the same thing happen if you run the mockery binary directly?
what do you mean? I was using a guide from the main page of this repo. Got docker image and ran it
if you mean this command go get github.com/vektra/mockery/v2/.../
I tried it. But wasn't able to locate the binary after getting the package
if you mean standalone binary so I tried to download 2.5.1 and ran it. Everything is ok. Works as should
I've used this command ./mockery --all --keeptree --recursive --log-level debug --dir ./ --output ./Tests/mocks
same with "github.com/go-resty/resty/v2"
package.
nothing generated.
@LandonTClipp same error
package account
import (
"github.com/pkg/errors"
)
var ErrSessionNotFound = errors.New("account: session not found")
I'm using go generate //go:generate mockery --dir "." --case "underscore" --outpkg "accountmocks" --output "../../internal/mocks/accountmocks" --all
02 Apr 21 13:11 MSK INF Starting mockery dry-run=false version=v2.7.4
02 Apr 21 13:11 MSK INF Walking dry-run=false version=v2.7.4
02 Apr 21 13:11 MSK ERR Error parsing file error="/Users/lcd1232/Projects/project/pkg/account/session.go:4:2: could not import github.com/pkg/errors (invalid package name: \"\")" dry-run=false version=v2.7.4
Looks like it's a problem with go 1.16, I tried 1.15 and it works fine
Closing out this old ticket, if this still occurs with the latest version of mockery and golang please re-open.
Hello. I wasn't able to create mocks for the interface
I run
and get the following log
any ideas on how to fix that?