Custom build vault, receive: stubmaker: fatal error

Hello!
Since v1.15.0 when I am using the tar.gz file from Releases · hashicorp/vault · GitHub, I receive the error

==> Checking that build is using go version >= 1.21.4...
==> Using go version 1.21.4...
2023-12-11T13:47:51.935Z [ERROR] stubmaker: fatal error: error="repository does not exist"
exit status 1
command/server/config_stubs_oss.go:5: running "go": exit status 1
2023-12-11T13:47:52.545Z [ERROR] stubmaker: fatal error: error="repository does not exist"
exit status 1
http/handler_stubs_oss.go:12: running "go": exit status 1
2023-12-11T13:47:53.057Z [ERROR] stubmaker: fatal error: error="repository does not exist"
exit status 1
vault/seal_stubs_oss.go:11: running "go": exit status 1
make: *** [Makefile:165: prep] Error 1

when trying to build using make bin but when I git clone it, I do not receive any error.

Can something be done, in order to avoid to git clone the repo?

I ran into this too and submitted a patch at Allow stubmaker to work outside of a git repository by DrDaveD · Pull Request #24678 · hashicorp/vault · GitHub.