Update module github.com/vektra/mockery/v2 to v3 (#841)

This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/vektra/mockery/v2](https://github.com/vektra/mockery) | `v2.53.4` -> `v3.5.2` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fvektra%2fmockery%2fv2/v3.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fvektra%2fmockery%2fv2/v2.53.4/v3.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vektra/mockery (github.com/vektra/mockery/v2)</summary>

### [`v3.5.2`](https://github.com/vektra/mockery/releases/tag/v3.5.2)

[Compare Source](https://github.com/vektra/mockery/compare/v3.5.1...v3.5.2)

#### What's Changed

- Fix bug with replace-type not working with pointers by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1099

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.5.1...v3.5.2

### [`v3.5.1`](https://github.com/vektra/mockery/releases/tag/v3.5.1)

[Compare Source](https://github.com/vektra/mockery/compare/v3.5.0...v3.5.1)

#### What's Changed

- Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in https://github.com/vektra/mockery/pull/1081

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.5.0...v3.5.1

### [`v3.5.0`](https://github.com/vektra/mockery/releases/tag/v3.5.0)

[Compare Source](https://github.com/vektra/mockery/compare/v3.4.0...v3.5.0)

#### What's Changed

- Add `inpackage` flag to override in-package detection logic by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1077
- Add `include-auto-generated` config option by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1079
- Fix issue with rendering multiple templates from same interface by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1080

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.4.0...v3.5.0

### [`v3.4.0`](https://github.com/vektra/mockery/releases/tag/v3.4.0)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.6...v3.4.0)

#### What's Changed

- Fix issue with type alias to interface not being generated by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1074

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.3.6...v3.4.0

### [`v3.3.6`](https://github.com/vektra/mockery/releases/tag/v3.3.6)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.5...v3.3.6)

#### What's Changed

- Separate release into reusable github action by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1071
- Fix matryer template imports when outputting mock to different package than source by [@&#8203;chadwpetersen](https://github.com/chadwpetersen) in https://github.com/vektra/mockery/pull/1061
- Fix issue in koanf v2.2.1 by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1068

#### New Contributors

- [@&#8203;chadwpetersen](https://github.com/chadwpetersen) made their first contribution in https://github.com/vektra/mockery/pull/1061

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.3.5...v3.3.6

### [`v3.3.5`](https://github.com/vektra/mockery/compare/v3.3.4...v3.3.5)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.4...v3.3.5)

### [`v3.3.4`](https://github.com/vektra/mockery/releases/tag/v3.3.4)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.3...v3.3.4)

#### What's Changed

- Ditch pathlib and fix Windows bugs by [@&#8203;kgadams](https://github.com/kgadams) in https://github.com/vektra/mockery/pull/1062

#### New Contributors

- [@&#8203;kgadams](https://github.com/kgadams) made their first contribution in https://github.com/vektra/mockery/pull/1062

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.3.2...v3.3.4

### [`v3.3.3`](https://github.com/vektra/mockery/compare/v3.3.2...v3.3.3)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.2...v3.3.3)

### [`v3.3.2`](https://github.com/vektra/mockery/releases/tag/v3.3.2)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.1...v3.3.2)

#### What's Changed

- Fix anchors causing panics by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1058
- Fix issue with relative `dir` values causing invalid in-package calculation by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1059

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.3.1...v3.3.2

### [`v3.3.1`](https://github.com/vektra/mockery/releases/tag/v3.3.1)

[Compare Source](https://github.com/vektra/mockery/compare/v3.3.0...v3.3.1)

#### What's Changed

- Fix issue when no value specified for variadic arg by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1055
- Bump github.com/spf13/viper from 1.15.0 to 1.20.1 in /tools by [@&#8203;peczenyj](https://github.com/peczenyj) in https://github.com/vektra/mockery/pull/1036

#### New Contributors

- [@&#8203;peczenyj](https://github.com/peczenyj) made their first contribution in https://github.com/vektra/mockery/pull/1036

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.3.0...v3.3.1

### [`v3.3.0`](https://github.com/vektra/mockery/releases/tag/v3.3.0)

[Compare Source](https://github.com/vektra/mockery/compare/v3.2.5...v3.3.0)

#### What's Changed

- Fix uppercase generic type parameters by [@&#8203;fen4o](https://github.com/fen4o) in https://github.com/vektra/mockery/pull/1022
- Add parameter type to EXPECT method doc comments. by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1034
- Fix missing dependency by running go mod tidy by [@&#8203;miner46er](https://github.com/miner46er) in https://github.com/vektra/mockery/pull/1045
- Fix issue with nil in `.Run()` causing panic by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1043
- Fix unroll-variadic default in v3 migration by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1054

#### New Contributors

- [@&#8203;fen4o](https://github.com/fen4o) made their first contribution in https://github.com/vektra/mockery/pull/1022
- [@&#8203;miner46er](https://github.com/miner46er) made their first contribution in https://github.com/vektra/mockery/pull/1045

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.2.5...v3.3.0

### [`v3.2.5`](https://github.com/vektra/mockery/releases/tag/v3.2.5)

[Compare Source](https://github.com/vektra/mockery/compare/v3.2.4...v3.2.5)

#### What's Changed

- Disable `goimports` from messing with imports by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1032
- Fix mockery reading auto-generated files by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1029

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.2.4...v3.2.5

### [`v3.2.4`](https://github.com/vektra/mockery/releases/tag/v3.2.4)

[Compare Source](https://github.com/vektra/mockery/compare/v3.2.3...v3.2.4)

#### What's Changed

- Recursive package generation regex fix by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1026
- Fix variadic parameter handling in `.EXPECT().Run()` by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1027
- Fix unknown `MOCKERY_` env vars causing panics by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1028

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.2.3...v3.2.4

### [`v3.2.3`](https://github.com/vektra/mockery/releases/tag/v3.2.3)

[Compare Source](https://github.com/vektra/mockery/compare/v3.2.2...v3.2.3)

#### What's Changed

- Mention PackageName template variable deprecation by [@&#8203;thejan2009](https://github.com/thejan2009) in https://github.com/vektra/mockery/pull/1018

#### New Contributors

- [@&#8203;thejan2009](https://github.com/thejan2009) made their first contribution in https://github.com/vektra/mockery/pull/1018

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.2.2...v3.2.3

### [`v3.2.2`](https://github.com/vektra/mockery/releases/tag/v3.2.2)

[Compare Source](https://github.com/vektra/mockery/compare/v3.2.1...v3.2.2)

#### What's Changed

- Fix issue with scope lookup returning nil by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1010
- Fix variadic mock generation when `unroll-variadic: false`. by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1011

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.2.1...v3.2.2

### [`v3.2.1`](https://github.com/vektra/mockery/releases/tag/v3.2.1)

[Compare Source](https://github.com/vektra/mockery/compare/v3.2.0...v3.2.1)

#### What's Changed

- Fix invalid generation when variadic has no return values by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1007

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.2.0...v3.2.1

### [`v3.2.0`](https://github.com/vektra/mockery/releases/tag/v3.2.0)

[Compare Source](https://github.com/vektra/mockery/compare/v3.1.0...v3.2.0)

#### What's Changed

- Fix `with-expecter` in migrate command by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1002
- Change `force-file-write` default to be `true`. by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1003
- Fix issue with variadic arguments from return function provider by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1004
- Bump github.com/go-git/go-git/v5 from 5.12.0 to 5.13.0 in /tools by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/vektra/mockery/pull/1005
- Bump golang.org/x/net from 0.33.0 to 0.36.0 in /tools by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/vektra/mockery/pull/1006

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.1.0...v3.2.0

### [`v3.1.0`](https://github.com/vektra/mockery/releases/tag/v3.1.0)

[Compare Source](https://github.com/vektra/mockery/compare/v3.0.2...v3.1.0)

#### What's Changed

- v3: Build release with latest stable Go version by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/998
- v3: Add `*ast.GenDecl` and `*ast.TypeSpec` comments to `template.Interface` by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/999

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.0.2...v3.1.0

### [`v3.0.2`](https://github.com/vektra/mockery/releases/tag/v3.0.2)

[Compare Source](https://github.com/vektra/mockery/compare/v3.0.1...v3.0.2)

#### What's Changed

- v3: Fix constructor name not respecting exported-ness by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/995

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.0.1...v3.0.2

### [`v3.0.1`](https://github.com/vektra/mockery/releases/tag/v3.0.1)

[Compare Source](https://github.com/vektra/mockery/compare/v3.0.0...v3.0.1)

#### What's Changed

- Fixing the v3 docs configuration by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/986
- v3: Fix `mockery init` failing by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/994

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.0.0...v3.0.1

### [`v3.0.0`](https://github.com/vektra/mockery/releases/tag/v3.0.0)

[Compare Source](https://github.com/vektra/mockery/compare/v2.53.4...v3.0.0)

#### What's Changed

- v3: Update docs and release for v3 GA. by [@&#8203;LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/985

**Full Changelog**: https://github.com/vektra/mockery/compare/v3.0.0-beta.11...v3.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-->
- other
  - [PR](https://code.forgejo.org/forgejo/runner/pulls/841): <!--number 841 --><!--line 0 --><!--description VXBkYXRlIG1vZHVsZSBnaXRodWIuY29tL3Zla3RyYS9tb2NrZXJ5L3YyIHRvIHYz-->Update module github.com/vektra/mockery/v2 to v3<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/841
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
This commit is contained in:
Renovate Bot 2025-08-11 05:33:56 +00:00 committed by earl-warren
parent f142385313
commit 92518a9a74
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201

View file

@ -13,7 +13,7 @@ WINDOWS_ARCHS ?= windows/amd64
GO_FMT_FILES := $(shell find . -type f -name "*.go" ! -name "generated.*")
GOFILES := $(shell find . -type f -name "*.go" -o -name "go.mod" ! -name "generated.*")
MOCKERY_PACKAGE ?= github.com/vektra/mockery/v2@v2.53.4 # renovate: datasource=go
MOCKERY_PACKAGE ?= github.com/vektra/mockery/v2@v3.5.2 # renovate: datasource=go
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.3.1 # renovate: datasource=go
DOCKER_IMAGE ?= gitea/act_runner