From f986a965ca5f6596af834fbd674365e744968bd5 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 27 Sep 2021 11:25:26 -0400 Subject: [PATCH] implements: always include the ceph_preview build tag Signed-off-by: John Mulligan --- contrib/implements/internal/implements/gosrc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/implements/internal/implements/gosrc.go b/contrib/implements/internal/implements/gosrc.go index 6c8230b..02e8552 100644 --- a/contrib/implements/internal/implements/gosrc.go +++ b/contrib/implements/internal/implements/gosrc.go @@ -190,6 +190,9 @@ func CephGoFunctions(source, packageName string, ii *Inspector) error { toCheck := []string{} toCheck = append(toCheck, p.GoFiles...) toCheck = append(toCheck, p.CgoFiles...) + for _, fname := range p.IgnoredGoFiles { + logger.Printf("Ignored go file: %v\n", fname) + } for _, fname := range toCheck { logger.Printf("Reading go file: %v\n", fname) src, err := ioutil.ReadFile(path.Join(p.Dir, fname)) @@ -209,3 +212,7 @@ func CephGoFunctions(source, packageName string, ii *Inspector) error { } return nil } + +func init() { + build.Default.BuildTags = append(build.Default.BuildTags, "ceph_preview") +}