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

v2.21.3 broke. worked with v2.21.2 Error: unable to find interface #568

Closed
jonaz opened this issue Mar 8, 2023 · 0 comments · Fixed by #570
Closed

v2.21.3 broke. worked with v2.21.2 Error: unable to find interface #568

jonaz opened this issue Mar 8, 2023 · 0 comments · Fixed by #570

Comments

@jonaz
Copy link

jonaz commented Mar 8, 2023

mockery --dir git --name Repo doest not respect dir flag anymore?

mockery -r --name Repo works

git dir contains file repo.go with interface

type Repo interface {
	WorkDir() string
	Add(file string) error
	HasLocalChanges() (bool, error)
	CommitAndPushIfLocalChanges(msg, author, upstreamURL string) error
	CommitAndPush(msg, author, upstreamURL string) error
	Pull() error
	Push(upstreamURL string) error
}
08 Mar 23 11:42 CET DBG failed to read in config error="Config File \".mockery\" Not Found in \"[/home/jonaz/git/fnxctl /home/jonaz/git /home/jonaz /home /]\"" version=v2.21.3
08 Mar 23 11:42 CET INF couldn't read any config file version=v2.21.3
08 Mar 23 11:42 CET INF Starting mockery dry-run=false version=v2.21.3
08 Mar 23 11:42 CET INF Using config:  dry-run=false version=v2.21.3
08 Mar 23 11:42 CET INF DISCUSSION: dynamic walking of project is being considered for removal in v3. Please provide your feedback at the linked discussion. discussion=https://github.com/vektra/mockery/discussions/549 dry-run=false pr=https://github.com/vektra/mockery/pull/548 version=v2.21.3
08 Mar 23 11:42 CET INF Walking dry-run=false version=v2.21.3
08 Mar 23 11:42 CET ERR Unable to find 'Repo' in any go files under this path dry-run=false version=v2.21.3
Error: unable to find interface
@jonaz jonaz changed the title v2.21.3 broked. worked with v2.21.2 v2.21.3 broke. worked with v2.21.2 Error: unable to find interface Mar 8, 2023
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