implements: always include the ceph_preview build tag

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-09-27 11:25:26 -04:00 committed by mergify[bot]
parent 3590347f60
commit f986a965ca
1 changed files with 7 additions and 0 deletions

View File

@ -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")
}