Prevent breakage when merging OSS changes to ENT due to missing funcs (#21564)

Add a go:generate helper called stubmaker, which generates appropriate stubs on ent based on oss stubs, but only when needed (i.e. real ent funcs haven't been added yet.)
This commit is contained in:
Nick Cabatoff
2023-07-06 12:35:06 -04:00
committed by GitHub
parent 6acd2921c5
commit afc8f7d5aa
6 changed files with 303 additions and 1 deletions

View File

@@ -156,6 +156,8 @@ function build() {
: "${GO_TAGS:=""}"
: "${REMOVE_SYMBOLS:=""}"
GOOS= GOARCH= go generate ./...
# Build our ldflags
msg="--> Building Vault v$version, revision $revision, built $build_date"