detached 6cc7912

build: pin mockery v3.7.1

commit
6cc7912ce2cba25736e2420b6478c944695287ff
author
brice · · 2026-07-14 19:23 UTC
parent
37d29ee
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
3 files · +8 -2
M .mockery.yml +1 -1
@@ -26,7 +26,7 @@ packages:
2626 config:
2727 all: true
2828 dir: internal/ports/mocks
29- filename: mocks.go
29+ filename: '{{.InterfaceFile | base | trimSuffix ".go"}}_mock.go'
3030 pkgname: portsmocks
3131 github.com/bnema/vev/internal/usecase/command:
3232 interfaces:
@@ -26,7 +26,7 @@ packages:
26 config:26 config:
27 all: true27 all: true
28 dir: internal/ports/mocks28 dir: internal/ports/mocks
29- filename: mocks.go29+ filename: '{{.InterfaceFile | base | trimSuffix ".go"}}_mock.go'
30 pkgname: portsmocks30 pkgname: portsmocks
31 github.com/bnema/vev/internal/usecase/command:31 github.com/bnema/vev/internal/usecase/command:
32 interfaces:32 interfaces:
M AGENTS.md +2 -1
@@ -16,7 +16,8 @@ go test ./pkg/renderer ./pkg/vt ./internal/adapters/ipc ./internal/usecase/daemo
1616 ```
1717
1818 - Format with **goimports**.
19-- Install dev tools once with `go install golang.org/x/tools/cmd/goimports@latest` and `go install github.com/vektra/mockery/v2@latest`.
19+- Install dev tools once with `go install golang.org/x/tools/cmd/goimports@latest` and `go install github.com/vektra/mockery/v3@v3.7.1`.
20+- Use Mockery v3 consistently across Go projects.
2021 - `make test` runs `go test ./... -race`.
2122 - `make lint` checks `goimports -l`, then `go vet`.
2223 - Enable daemon pprof with `VEV_PPROF_ADDR=127.0.0.1:6060 vev --daemon`.
@@ -16,7 +16,8 @@ go test ./pkg/renderer ./pkg/vt ./internal/adapters/ipc ./internal/usecase/daemo
16 ```16 ```
17 17
18 - Format with **goimports**.18 - Format with **goimports**.
19-- Install dev tools once with `go install golang.org/x/tools/cmd/goimports@latest` and `go install github.com/vektra/mockery/v2@latest`.19+- Install dev tools once with `go install golang.org/x/tools/cmd/goimports@latest` and `go install github.com/vektra/mockery/v3@v3.7.1`.
20+- Use Mockery v3 consistently across Go projects.
20 - `make test` runs `go test ./... -race`.21 - `make test` runs `go test ./... -race`.
21 - `make lint` checks `goimports -l`, then `go vet`.22 - `make lint` checks `goimports -l`, then `go vet`.
22 - Enable daemon pprof with `VEV_PPROF_ADDR=127.0.0.1:6060 vev --daemon`.23 - Enable daemon pprof with `VEV_PPROF_ADDR=127.0.0.1:6060 vev --daemon`.
M Makefile +5 -0
@@ -15,4 +15,9 @@ lint:
1515 go vet ./...
1616
1717 mocks:
18+ @version="$$(mockery version 2>/dev/null || true)"; \
19+ if [ "$$version" != "v3.7.1" ]; then \
20+ echo "mockery v3.7.1 required; install with: go install github.com/vektra/mockery/v3@v3.7.1" >&2; \
21+ exit 1; \
22+ fi
1823 mockery
@@ -15,4 +15,9 @@ lint:
15 go vet ./...15 go vet ./...
16 16
17 mocks:17 mocks:
18+ @version="$$(mockery version 2>/dev/null || true)"; \
19+ if [ "$$version" != "v3.7.1" ]; then \
20+ echo "mockery v3.7.1 required; install with: go install github.com/vektra/mockery/v3@v3.7.1" >&2; \
21+ exit 1; \
22+ fi
18 mockery23 mockery

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 12

Tags 11

↑↓ moveenter openesc close