Skip to content

chore(deps): update module github.com/vektra/mockery/v2 to v3#76

Open
scality-renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-vektra-mockery-v2-3.x
Open

chore(deps): update module github.com/vektra/mockery/v2 to v3#76
scality-renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-vektra-mockery-v2-3.x

Conversation

@scality-renovate

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/vektra/mockery/v2 v2.53.6v3.7.1 age confidence

Release Notes

vektra/mockery (github.com/vektra/mockery/v2)

v3.7.1

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.7.0...v3.7.1

v3.7.0

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.6.4...v3.7.0

v3.6.4

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.6.3...v3.6.4

v3.6.3

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.6.2...v3.6.3

v3.6.2

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.6.1...v3.6.2

v3.6.1

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.6.0...v3.6.1

v3.6.0

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.5.5...v3.6.0

Misc

This release fixes a bug in auto-generated code detection. If mockery fails to generate mocks for auto-generated files that it previously had, please use include-auto-generated: true in your config.

v3.5.5

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.5.4...v3.5.5

v3.5.4

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.5.3...v3.5.4

v3.5.3

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.5.2...v3.5.3

v3.5.2

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.5.1...v3.5.2

v3.5.1

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.5.0...v3.5.1

v3.5.0

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.4.0...v3.5.0

v3.4.0

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.3.6...v3.4.0

v3.3.6

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.3.5...v3.3.6

v3.3.5

Compare Source

v3.3.4

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.3.2...v3.3.4

v3.3.3

Compare Source

v3.3.2

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.3.1...v3.3.2

v3.3.1

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.3.0...v3.3.1

v3.3.0

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.2.5...v3.3.0

v3.2.5

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.2.4...v3.2.5

v3.2.4

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.2.3...v3.2.4

v3.2.3

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.2.2...v3.2.3

v3.2.2

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.2.1...v3.2.2

v3.2.1

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.2.0...v3.2.1

v3.2.0

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.1.0...v3.2.0

v3.1.0

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.0.2...v3.1.0

v3.0.2

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.0.1...v3.0.2

v3.0.1

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.0.0...v3.0.1

v3.0.0

Compare Source

What's Changed

Full Changelog: vektra/mockery@v3.0.0-beta.11...v3.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 9am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@github-actions

Copy link
Copy Markdown

Dependency Bump Evaluation

Version change: v2.53.6v3.7.1 (major)
Semver bump type: major

Changes (v3.0.0 through v3.7.1):

  • Complete rewrite of mockery configuration and CLI interface
  • Import path changed from github.com/vektra/mockery/v2 to github.com/vektra/mockery/v3
  • Default mock file placement changed (adjacent to interface instead of mocks/ directory)
  • One output file per package instead of one per mock
  • Removed parameters: inpackage, keeptree, with-expecter, outpkg (now pkgname)
  • Template function argument order swapped
  • replace-type: schema overhauled (requires manual migration)
  • Function mocks removed
  • mockery migrate command available for best-effort config migration
  • Various bug fixes, Go 1.25/1.26 support, security dependency bumps

Breaking changes: Yes — this is a major version bump with extensive breaking changes (see above)

Security concerns: None specific. v3.5.5 bumped go-viper/mapstructure for security, but no CVEs in mockery itself.

Impact on codebase — critical issues found:

  1. Import path mismatch: pkg/implementation/raidcontroller/megaraid/tools.go:7 still imports github.com/vektra/mockery/v2 but go.mod now declares v3. In Go modules, major version is part of the import path — this will cause a build failure.

  2. Duplicate go.mod entry: go.mod lines 8-9 both contain github.com/vektra/mockery/v3 v3.7.1 — this is invalid and will cause go mod errors.

  3. //go:generate directives use v2 CLI syntax: tools.go:10-11 use --name, --output, --outpkg flags. In v3, --outpkg is removed (replaced by pkgname in config), and config-file-based generation via .mockery.yaml is required.

  4. No .mockery.yaml config: v3 requires a configuration file. None exists in this repo.

  5. Generated mocks not regenerated: Both mocks/PathResolver.go and mocks/Runner.go still show Code generated by mockery 2.53.3. v3 changes the generated code format (one file per package, different layout).

  6. go.sum inconsistency: Still contains v2 entries; v3 entry is missing the h1: hash line.

Recommendation: BREAKING CHANGES

Notes: This PR only updates go.mod but does not perform the required v2→v3 migration. The build will fail due to the import path mismatch and duplicate go.mod entry. A proper migration requires:

  • Run mockery migrate to generate a v3-compatible .mockery.yaml
  • Update tools.go import from v2 to v3
  • Update or remove //go:generate directives (v3 prefers config-based generation)
  • Regenerate all mock files with v3
  • Fix the duplicate go.mod entry
  • Run go mod tidy to clean up go.sum

Note: v2 continues to receive bug fixes, security patches, and Go compatibility updates until Dec 31, 2029, so there is no urgency to migrate. Consider whether the v3 features justify the migration effort, or close this PR and pin renovate to v2.x.

— Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants