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

Recursive: true appears to no longer work with v2.37 #733

Closed
3 of 5 tasks
nbam-e opened this issue Nov 15, 2023 · 2 comments
Closed
3 of 5 tasks

Recursive: true appears to no longer work with v2.37 #733

nbam-e opened this issue Nov 15, 2023 · 2 comments

Comments

@nbam-e
Copy link

nbam-e commented Nov 15, 2023

Description

Prior to v2.37 the following .mockery.yaml file would create mocks for all interfaces (where "reproduction" is the module name)

packages:
  reproduction:
    config:
      all: true
      recursive: true

After updating to v2.37, no mocks are generated.

Mockery Version

v2.37

Golang Version

The one from the latest official mockery docker image (1.21.3).
(The same issue also occurs with the binary from the github release or mockery binary built from source using go 1.21.4)

Installation Method

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

Steps to Reproduce

Minimal reproduction: repro.zip

  1. unzip reproduction
  2. cd repro
  3. run run2.37.sh

Expected Behavior

Mock for interface SomeType in somepkg/someinterface.go should be generated

Actual Behavior

No mocks are generated (when using run2.36.sh, the mocks are generated as expected)

@LandonTClipp
Copy link
Collaborator

Interesting, I'll have to see why the tests didn't catch this. I'll revert the change for now and will investigate what went wrong.

@LandonTClipp
Copy link
Collaborator

I've reverted the change in 2.37.1. Sorry for the disruption, we'll figure out why this feature broke and hopefully re-release it once we iron out the regression.

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

No branches or pull requests

2 participants