Build the nats input on freebsd when cgo is enabled (#6658)

This commit is contained in:
Daniel Nelson 2019-11-13 14:45:56 -08:00 committed by GitHub
parent 0c918b099b
commit 122ec0fa39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -1,20 +1,18 @@
// +build !freebsd // +build !freebsd freebsd,cgo
package nats package nats
import ( import (
"encoding/json"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"
"path" "path"
"time" "time"
"encoding/json"
"github.com/influxdata/telegraf" "github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal" "github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/inputs" "github.com/influxdata/telegraf/plugins/inputs"
gnatsd "github.com/nats-io/gnatsd/server" gnatsd "github.com/nats-io/gnatsd/server"
) )

View File

@ -1,3 +1,3 @@
// +build freebsd // +build freebsd,!cgo
package nats package nats

View File

@ -1,4 +1,4 @@
// +build !freebsd // +build !freebsd freebsd,cgo
package nats package nats