Open hnxxgwccr opened 4 years ago
When I import net package in netplugin/drivers/ovsd/ovsdriver.go
package ovsd import ( "encoding/json" "errors" "fmt" **"net"** "os" "strconv" "strings" "sync" log "github.com/Sirupsen/logrus" "github.com/contiv/netplugin/core" "github.com/contiv/netplugin/drivers" "github.com/contiv/netplugin/netmaster/mastercfg" "github.com/contiv/netplugin/netplugin/nameserver" "github.com/contiv/netplugin/utils/netutils" "github.com/contiv/ofnet" "github.com/vishvananda/netlink" )
make host-build fail, show as:
github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1beta1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/settings/v1alpha1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/storage/v1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1 github.com/contiv/netplugin/vendor/k8s.io/client-go/kubernetes github.com/contiv/netplugin/utils/k8sutils github.com/contiv/netplugin/netmaster/k8snetwork make[1]: *** [compile] Error 2 make[1]: Leaving directory `/opt/gopath/src/github.com/contiv/netplugin' make: *** [host-build] Error 2 [vagrant@netplugin-node1 netplugin]$
No detail infromations, how to solve it?
My building environment is ok, when I change code in netplugin/mgmt/k8splugin/kubeClient.go, make is success.
Thanks.
make host-build success.
The building environment is setup according to netplugin/docks/DevEnv.md
Description
When I import net package in netplugin/drivers/ovsd/ovsdriver.go
make host-build fail, show as:
No detail infromations, how to solve it?
My building environment is ok, when I change code in netplugin/mgmt/k8splugin/kubeClient.go, make is success.
Thanks.
Expected Behavior
make host-build success.
Observed Behavior
Steps to Reproduce (for bugs)
Your Environment
The building environment is setup according to netplugin/docks/DevEnv.md