mirror of https://github.com/ceph/go-ceph
implements: always include the ceph_preview build tag
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
3590347f60
commit
f986a965ca
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue