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

Debug message: Config File \".mockery\" Not Found in... #613

Closed
1 of 5 tasks
ob1dev opened this issue Apr 26, 2023 · 2 comments · Fixed by #615
Closed
1 of 5 tasks

Debug message: Config File \".mockery\" Not Found in... #613

ob1dev opened this issue Apr 26, 2023 · 2 comments · Fixed by #615
Labels
good-first-issue Good issue for beginners or first-time contributors to tackle

Comments

@ob1dev
Copy link

ob1dev commented Apr 26, 2023

Description

The issue related to the following thread https://pullanswer.com/questions/mockery-not-running-on-version-v2-21-0-failed-to-read-in-config#, where running mockery still prints a debug statement Config File \".mockery\" Not Found in...

Mockery Version

2.26.1

Golang Version

1.20.3

Installation Method

  • Binary Distribution
  • Docker
  • brew
  • go install
  • Other: [specify]

Steps to Reproduce

  1. docker run -t --entrypoint /bin/sh vektra/mockery:latest -c mockery --name=SomeInterface

Expected Behavior

Prints out only info statement:

26 Apr 23 21:01 UTC DBG failed to read in config error="Config File \".mockery\" Not Found in \"[/go / /root]\"" version=v2.26.1
26 Apr 23 21:01 UTC INF couldn't read any config file version=v2.26.1
26 Apr 23 21:01 UTC INF Starting mockery dry-run=false version=v2.26.1
26 Apr 23 21:01 UTC INF Using config:  dry-run=false version=v2.26.1
26 Apr 23 21:01 UTC FTL Use --name to specify the name of the interface or --all for all interfaces found dry-run=false version=v2.26.1

Actual Behavior

Prints out only info statement:

26 Apr 23 21:01 UTC INF couldn't read any config file version=v2.26.1
26 Apr 23 21:01 UTC INF Starting mockery dry-run=false version=v2.26.1
26 Apr 23 21:01 UTC INF Using config:  dry-run=false version=v2.26.1
26 Apr 23 21:01 UTC FTL Use --name to specify the name of the interface or --all for all interfaces found dry-run=false version=v2.26.1
@LandonTClipp
Copy link
Contributor

Feel free to submit a PR to remove that line, we don't really need it.

@LandonTClipp LandonTClipp added the good-first-issue Good issue for beginners or first-time contributors to tackle label Apr 28, 2023
@rafiramadhana
Copy link
Contributor

Hi @LandonTClipp , I am interested to work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Good issue for beginners or first-time contributors to tackle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants