Skip to content

Commit

Permalink
BUILDS: Use vendor directory instead of Godeps
Browse files Browse the repository at this point in the history
Keep the Godeps.json but store files in the vendor directly. This means
that there is no longer a need to rewrite import paths.
  • Loading branch information
tomdee committed Jun 14, 2016
1 parent 6c95ca9 commit f0f4dfb
Show file tree
Hide file tree
Showing 282 changed files with 242 additions and 249 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: go
go:
- 1.4
- 1.5
- 1.6

install:
- go get golang.org/x/tools/cmd/cover
Expand Down
3 changes: 2 additions & 1 deletion Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

2 changes: 0 additions & 2 deletions Godeps/_workspace/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion backend/alloc/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package alloc
import (
"fmt"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"golang.org/x/net/context"
"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
"github.com/coreos/flannel/subnet"
Expand Down
12 changes: 6 additions & 6 deletions backend/awsvpc/awsvpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"encoding/json"
"fmt"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/awserr"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/aws/aws-sdk-go/service/ec2"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/service/ec2"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
2 changes: 1 addition & 1 deletion backend/awsvpc/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package awsvpc

import "github.com/coreos/flannel/Godeps/_workspace/src/github.com/aws/aws-sdk-go/service/ec2"
import "github.com/aws/aws-sdk-go/service/ec2"

type ecFilter []*ec2.Filter

Expand Down
2 changes: 1 addition & 1 deletion backend/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package backend
import (
"net"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"golang.org/x/net/context"

"github.com/coreos/flannel/subnet"
)
Expand Down
6 changes: 3 additions & 3 deletions backend/gce/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"fmt"
"time"

"github.com/coreos/flannel/Godeps/_workspace/src/code.google.com/p/goauth2/compute/serviceaccount"
"github.com/coreos/flannel/Godeps/_workspace/src/code.google.com/p/google-api-go-client/compute/v1"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"code.google.com/p/goauth2/compute/serviceaccount"
"code.google.com/p/google-api-go-client/compute/v1"
log "github.com/golang/glog"
)

type gceAPI struct {
Expand Down
6 changes: 3 additions & 3 deletions backend/gce/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ import (
"strings"
"sync"

"github.com/coreos/flannel/Godeps/_workspace/src/code.google.com/p/google-api-go-client/googleapi"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"code.google.com/p/google-api-go-client/googleapi"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
2 changes: 1 addition & 1 deletion backend/hostgw/hostgw.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package hostgw
import (
"fmt"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"golang.org/x/net/context"
"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
"github.com/coreos/flannel/subnet"
Expand Down
6 changes: 3 additions & 3 deletions backend/hostgw/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"sync"
"time"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
log "github.com/golang/glog"
"github.com/vishvananda/netlink"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/subnet"
Expand Down
4 changes: 2 additions & 2 deletions backend/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"strings"
"sync"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/subnet"
)
Expand Down
2 changes: 1 addition & 1 deletion backend/udp/cproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"reflect"
"unsafe"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
log "github.com/golang/glog"

"github.com/coreos/flannel/pkg/ip"
)
Expand Down
6 changes: 3 additions & 3 deletions backend/udp/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"sync"
"syscall"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
log "github.com/golang/glog"
"github.com/vishvananda/netlink"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
2 changes: 1 addition & 1 deletion backend/udp/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/json"
"fmt"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
6 changes: 3 additions & 3 deletions backend/vxlan/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"syscall"
"time"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
log "github.com/golang/glog"
"github.com/vishvananda/netlink"
"github.com/vishvananda/netlink/nl"

"github.com/coreos/flannel/pkg/ip"
)
Expand Down
6 changes: 3 additions & 3 deletions backend/vxlan/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"sync"
"time"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
log "github.com/golang/glog"
"github.com/vishvananda/netlink"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
2 changes: 1 addition & 1 deletion backend/vxlan/vxlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"sync"
"syscall"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/pkg/flagutil"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/pkg/flagutil"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/network"
"github.com/coreos/flannel/remote"
Expand Down
4 changes: 2 additions & 2 deletions network/ipmasq.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"fmt"
"strings"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-iptables/iptables"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/go-iptables/iptables"
log "github.com/golang/glog"

"github.com/coreos/flannel/pkg/ip"
)
Expand Down
6 changes: 3 additions & 3 deletions network/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"sync"
"time"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-systemd/daemon"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/go-systemd/daemon"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down
4 changes: 2 additions & 2 deletions network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sync"
"time"

log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/subnet"
Expand Down
2 changes: 1 addition & 1 deletion pkg/ip/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net"
"syscall"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/vishvananda/netlink"
)

func getIfaceAddrs(iface *net.Interface) ([]netlink.Addr, error) {
Expand Down
4 changes: 2 additions & 2 deletions remote/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"path"
"time"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/pkg/transport"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/pkg/transport"
"golang.org/x/net/context"

"github.com/coreos/flannel/pkg/ip"
"github.com/coreos/flannel/subnet"
Expand Down
2 changes: 1 addition & 1 deletion remote/http_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package remote

import (
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
log "github.com/golang/glog"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion remote/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"golang.org/x/net/context"

"github.com/coreos/flannel/pkg/ip"
"github.com/coreos/flannel/subnet"
Expand Down
12 changes: 6 additions & 6 deletions remote/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"regexp"
"strconv"

"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/pkg/transport"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-systemd/activation"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-systemd/daemon"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/gorilla/mux"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/etcd/pkg/transport"
"github.com/coreos/go-systemd/activation"
"github.com/coreos/go-systemd/daemon"
log "github.com/golang/glog"
"github.com/gorilla/mux"
"golang.org/x/net/context"

"github.com/coreos/flannel/subnet"
)
Expand Down
2 changes: 1 addition & 1 deletion subnet/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

package subnet

import "github.com/coreos/flannel/Godeps/_workspace/src/github.com/jonboulle/clockwork"
import "github.com/jonboulle/clockwork"

var clock clockwork.Clock = clockwork.NewRealClock()
6 changes: 3 additions & 3 deletions subnet/local_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"strconv"
"time"

etcd "github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/client"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
etcd "github.com/coreos/etcd/client"
"github.com/coreos/flannel/pkg/ip"
log "github.com/golang/glog"
"golang.org/x/net/context"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions subnet/mock_etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sync"
"time"

etcd "github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/client"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
etcd "github.com/coreos/etcd/client"
"golang.org/x/net/context"
)

const DEFAULT_TTL time.Duration = 8760 * time.Hour // one year
Expand Down
4 changes: 2 additions & 2 deletions subnet/mock_etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"fmt"
"testing"

etcd "github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/client"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
etcd "github.com/coreos/etcd/client"
"golang.org/x/net/context"
)

func expectSuccess(t *testing.T, r *etcd.Response, err error, expected *etcd.Response, expectedValue string) {
Expand Down
4 changes: 2 additions & 2 deletions subnet/mock_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sync"
"time"

etcd "github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/client"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
etcd "github.com/coreos/etcd/client"
"golang.org/x/net/context"

"github.com/coreos/flannel/pkg/ip"
)
Expand Down
8 changes: 4 additions & 4 deletions subnet/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"sync"
"time"

etcd "github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/client"
"github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/pkg/transport"
log "github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
etcd "github.com/coreos/etcd/client"
"github.com/coreos/etcd/pkg/transport"
log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/pkg/ip"
)
Expand Down
4 changes: 2 additions & 2 deletions subnet/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"testing"
"time"

etcd "github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/etcd/client"
"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
etcd "github.com/coreos/etcd/client"
"golang.org/x/net/context"

"github.com/coreos/flannel/pkg/ip"
)
Expand Down
2 changes: 1 addition & 1 deletion subnet/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"strconv"
"time"

"github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
"github.com/coreos/flannel/pkg/ip"
"golang.org/x/net/context"
)

var (
Expand Down
Loading

0 comments on commit f0f4dfb

Please sign in to comment.