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

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

Conversation

@scality-renovate

@scality-renovate scality-renovate Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

Release Notes

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

v3.8.0

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.7.4...v3.8.0

v3.7.4

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.7.3...v3.7.4

v3.7.3

Compare Source

What's Changed

New Contributors

Full Changelog: vektra/mockery@v3.7.2...v3.7.3

v3.7.2

Compare Source

What's Changed

New Contributors

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

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

v2.53.7

Compare Source

What's Changed

Full Changelog: vektra/mockery@v2.53.6...v2.53.7


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 CLI.

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

Dependency Bump Evaluation

Version change: v3.7.1 -> v3.7.2 (patch)

Note: The PR title suggests a v2->v3 major bump, but the actual diff is a patch bump within v3. The main branch already carries both mockery/v2 v2.53.6 (used by legacy go:generate directives) and mockery/v3; this PR only updates the v3 line.

Changes (v3.7.2):

  • FAQ documentation improvement for package path case mismatch errors
  • Typo corrections in comments and docs
  • Match interface{} as well as any (compatibility improvement)

Breaking changes: None

Security concerns: None - all changes are documentation, typo fixes, and a minor compatibility improvement

Impact on codebase: The project currently uses mockery v2 for mock generation (pkg/implementation/raidcontroller/megaraid/tools.go still imports mockery/v2 and uses v2-style --name flags). The v3 dependency is present but not yet actively used for generation. This patch bump has no effect on existing code.

CI status: Some checks still in progress (golangci-lint, tests) at time of evaluation

Recommendation: SAFE TO MERGE (once CI is green)

-- Claude Code

@ezekiel-alexrod

Copy link
Copy Markdown
Contributor

On hold — not mergeable as-is, despite the green CI:

  • The resulting go.mod lists mockery/v3 twice (side effect of chore(deps): update module github.com/vektra/mockery/v2 to v3 #56, which added v3 without removing v2).
  • megaraid/tools.go still imports mockery/v2, and the go:generate directives use v2 CLI syntax (--name/--output), removed in v3. Mock regeneration would silently break — CI can't see it (tools build tag).

Mockery v3 needs a real migration (.mockery.yml, updated go:generate, regenerated mocks, go mod tidy). Since the affected code lives in megaraid, we'll fold this into the planned refactor of the lib (megaraid v1 into the hexagonal architecture, aligning with the clean architecture used in our recent repos) rather than doing it piecemeal here.

Keeping this PR open as a reminder; it will become a no-op once the refactor lands.

@scality-renovate
scality-renovate Bot force-pushed the renovate/github.com-vektra-mockery-v2-3.x branch from 48523a6 to cf75bc7 Compare July 31, 2026 04:11
@scality-renovate
scality-renovate Bot force-pushed the renovate/github.com-vektra-mockery-v2-3.x branch 2 times, most recently from f443c2d to dfbf5f7 Compare August 20, 2026 04:12
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Dependency Bump Evaluation

Version change: github.com/vektra/mockery/v2 v2.53.6 to v3.8.0 (major)
Semver bump type: major

Changes (v3.0.0 through v3.8.0):

  • Mockery v3 is a complete rewrite with new module path (github.com/vektra/mockery/v3), new config format, new CLI behavior
  • Numerous bug fixes and features across 30+ releases (generic type support, variadic handling, Go 1.25-1.27 support, goimports config, embedded types in matryer mocks)
  • Security: bumped github.com/go-viper/mapstructure/v2 to address security concerns (v3.5.5)

Breaking changes: YES, mockery v3 is a major rewrite

  • Module path changes from github.com/vektra/mockery/v2 to github.com/vektra/mockery/v3
  • Configuration format changed, v3 strongly prefers .mockery.yaml config-file-based setup
  • CLI flags and behavior differ from v2
  • Generated mock code format has changed
  • mockery migrate command is available to assist with config migration

Security concerns: None identified. The v3 releases contain a security fix for mapstructure (v3.5.5) and no suspicious patterns.

Impact on codebase: This PR is incomplete as a migration. Specific issues:

  1. tools.go still imports github.com/vektra/mockery/v2 (line 7), not updated to v3
  2. go:generate directives (lines 10-11) use v2-style CLI flags, not verified for v3 compatibility
  3. Generated mocks in megaraid/mocks/ were generated by mockery 2.53.3, not regenerated with v3
  4. No .mockery.yaml config file was created (v3 recommends config-file-based setup)
  5. The result is both v2 (v2.53.7) and v3 (v3.8.0) declared in go.mod, with only v2 actually used. v3 is dead code

Recommendation: REVIEW REQUIRED

Notes: This PR cannot be merged as-is. It adds mockery v3 to go.mod without completing the actual migration. A proper v2 to v3 migration requires:

  1. Updating tools.go import from github.com/vektra/mockery/v2 to github.com/vektra/mockery/v3
  2. Running mockery migrate to generate a .mockery.yaml config (or updating go:generate directives for v3 CLI compatibility)
  3. Regenerating all mock files with mockery v3
  4. Verifying tests pass with the regenerated mocks
  5. Removing the v2 dependency from go.mod

Tests pass on this PR only because the actual code is unchanged. The v3 module is added but never used, which masks the real migration work needed.

— Claude Code

@scality-renovate
scality-renovate Bot force-pushed the renovate/github.com-vektra-mockery-v2-3.x branch from dfbf5f7 to 5510167 Compare August 31, 2026 04:14
@scality-renovate

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 4 additional dependencies were updated

Due to Go's usage of Minimal Version Selection (MVS), these packages have been updated to the minimum version available, so will still abide by minimumReleaseAge=7 days

Details:

Package Change
golang.org/x/mod v0.33.0 -> v0.39.0
golang.org/x/sync v0.19.0 -> v0.22.0
golang.org/x/sys v0.41.0 -> v0.47.0
golang.org/x/tools v0.42.0 -> v0.49.0

@scality-renovate scality-renovate Bot changed the title chore(deps): update module github.com/vektra/mockery/v2 to v3 chore(deps): update module github.com/vektra/mockery/v2 to v3 - autoclosed Sep 3, 2026
@scality-renovate scality-renovate Bot closed this Sep 3, 2026
@scality-renovate
scality-renovate Bot deleted the renovate/github.com-vektra-mockery-v2-3.x branch September 3, 2026 04:10
@scality-renovate scality-renovate Bot changed the title chore(deps): update module github.com/vektra/mockery/v2 to v3 - autoclosed chore(deps): update module github.com/vektra/mockery/v2 to v3 Sep 7, 2026
@scality-renovate scality-renovate Bot reopened this Sep 7, 2026
@scality-renovate
scality-renovate Bot force-pushed the renovate/github.com-vektra-mockery-v2-3.x branch 5 times, most recently from e38cadb to 883fcaf Compare September 14, 2026 04:08
@scality-renovate
scality-renovate Bot force-pushed the renovate/github.com-vektra-mockery-v2-3.x branch from 883fcaf to 9006cb5 Compare September 15, 2026 04:09
@scality-renovate
scality-renovate Bot force-pushed the renovate/github.com-vektra-mockery-v2-3.x branch from 9006cb5 to c0c0984 Compare September 16, 2026 04:09
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.

1 participant