Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hnxxgwccr opened this issue Jun 1, 2020 · 0 comments
Open

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

hnxxgwccr opened this issue Jun 1, 2020 · 0 comments

Comments

@hnxxgwccr
Copy link

hnxxgwccr commented Jun 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant