implements: always include the ceph_preview build tag
@@ -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")
+}
