Replies: 1 comment 1 reply
-
There are three ways:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to generate a mock for an interface that uses something from an internal package but I get this error:
use of internal package github.com/jackc/pgx/v4/internal/sanitize not allowed
.This error is present when I'm trying to use mockery using Golang 1.22.3 but using 1.19.3 works fine.
My specs:
OS: MacOS Sonoma 14.6.1
Arch: Go darwin/arm64
My mockery file contains:
Mockery output:
The content from
vendor/github.com/jackc/pgx/v4/conn.go:15:2
is:Go 1.19.3 and Mockery 2.40.1 generate the following file:
Beta Was this translation helpful? Give feedback.
All reactions