Skip to content

make host-build fail when import a new package #1168

@hnxxgwccr

Description

@hnxxgwccr

Description

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.

Expected Behavior

make host-build success.

Observed Behavior

Steps to Reproduce (for bugs)

  1. add net package in netplugin/drivers/ovsd/ovsdriver.go
  2. make host-build

Your Environment

The building environment is setup according to netplugin/docks/DevEnv.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions