No more path rewriting
authorEugene Yakubovich <eugene.yakubovich@coreos.com>
Fri, 12 Jun 2015 19:15:11 +0000 (12:15 -0700)
committerEugene Yakubovich <eugene.yakubovich@coreos.com>
Fri, 12 Jun 2015 23:29:18 +0000 (16:29 -0700)
Path rewriting causes too many problems when vendoring
vendored code. When CNI code is vendored into rkt,
godep has problems code already vendored by CNI.

ip/ipmasq.go
ip/link.go
ip/route.go
plugin/ipam.go

index 665189b..7f8740d 100644 (file)
@@ -18,7 +18,7 @@ import (
        "fmt"
        "net"
 
-       "github.com/appc/cni/Godeps/_workspace/src/github.com/coreos/go-iptables/iptables"
+       "github.com/coreos/go-iptables/iptables"
 )
 
 // SetupIPMasq installs iptables rules to masquerade traffic
index c99f4f3..3936ed9 100644 (file)
@@ -20,7 +20,7 @@ import (
        "net"
        "os"
 
-       "github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
+       "github.com/vishvananda/netlink"
 )
 
 func makeVethPair(name, peer string, mtu int) (netlink.Link, error) {
index f310f1e..04e660e 100644 (file)
@@ -17,7 +17,7 @@ package ip
 import (
        "net"
 
-       "github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
+       "github.com/vishvananda/netlink"
 )
 
 // AddDefaultRoute sets the default route on the given gateway.
index f5a5033..6718ed2 100644 (file)
@@ -23,8 +23,8 @@ import (
        "path/filepath"
        "strings"
 
-       "github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
        "github.com/appc/cni/pkg/ip"
+       "github.com/vishvananda/netlink"
 )
 
 // Find returns the full path of the plugin by searching in CNI_PATH