Migrate to golang1.5 release with GO15VENDOREXPERIMENT=1 enabled

This commit is contained in:
Harshavardhana
2015-08-22 18:34:00 -07:00
parent 5721d85c9a
commit 988d39a5b6
152 changed files with 10387 additions and 83 deletions
+1 -1
View File
@@ -19,8 +19,8 @@ package auth_test
import (
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/auth"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"encoding/json"
"net/http"
jsonrpc "github.com/minio/minio/internal/github.com/gorilla/rpc/v2/json"
jsonrpc "github.com/gorilla/rpc/v2/json"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/probe"
"github.com/minio/minio/pkg/server/rpc"
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"bytes"
"net/http"
"github.com/minio/minio/internal/github.com/gorilla/rpc/v2/json"
"github.com/gorilla/rpc/v2/json"
"github.com/minio/minio/pkg/probe"
)
+1 -1
View File
@@ -23,8 +23,8 @@ import (
"strings"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/cpu"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"encoding/hex"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/crypto/md5"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -19,7 +19,7 @@ package data
import (
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -19,7 +19,7 @@ package metadata
import (
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"path/filepath"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func TestDisk(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -27,7 +27,7 @@ import (
"strconv"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func TestDonut(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"path/filepath"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func TestCache(t *testing.T) { TestingT(t) }
+5 -5
View File
@@ -7,15 +7,15 @@ This installation document assumes Ubuntu 14.04+ on x86-64 platform.
$ sudo apt-get install git build-essential yasm
```
##### Install Go 1.4+
##### Install Go 1.5+
Download Go 1.4+ from [https://golang.org/dl/](https://golang.org/dl/).
Download Go 1.5+ from [https://golang.org/dl/](https://golang.org/dl/).
```sh
$ wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
$ wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
$ mkdir -p ${HOME}/bin/
$ mkdir -p ${HOME}/go/
$ tar -C ${HOME}/bin/ -xzf go1.4.linux-amd64.tar.gz
$ tar -C ${HOME}/bin/ -xzf go1.5.linux-amd64.tar.gz
```
##### Setup GOROOT and GOPATH
@@ -42,7 +42,7 @@ $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/maste
$ brew install git python yasm
```
##### Install Go 1.4+
##### Install Go 1.5+
Install golang binaries using `brew`
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
type MySuite struct{}
+1 -1
View File
@@ -19,7 +19,7 @@ package erasure
import (
"bytes"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func corruptChunks(chunks [][]byte, errorIndex []int) [][]byte {
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"strings"
"sync"
"github.com/minio/minio/internal/github.com/dustin/go-humanize"
"github.com/dustin/go-humanize"
)
// GetSysInfo returns useful system statistics.
+1 -1
View File
@@ -19,8 +19,8 @@ import (
"os"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/probe"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -28,7 +28,7 @@ import (
"strings"
"sync"
"github.com/minio/minio/internal/github.com/fatih/structs"
"github.com/fatih/structs"
"github.com/minio/minio/pkg/probe"
)
+1 -1
View File
@@ -22,8 +22,8 @@ import (
"os"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/quick"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -19,7 +19,7 @@ package api
import (
"net/http"
"github.com/minio/minio/internal/github.com/gorilla/mux"
"github.com/gorilla/mux"
"github.com/minio/minio/pkg/donut"
"github.com/minio/minio/pkg/probe"
"github.com/minio/minio/pkg/utils/log"
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"net/http"
"strconv"
"github.com/minio/minio/internal/github.com/gorilla/mux"
"github.com/gorilla/mux"
"github.com/minio/minio/pkg/donut"
"github.com/minio/minio/pkg/probe"
"github.com/minio/minio/pkg/utils/log"
+1 -1
View File
@@ -27,9 +27,9 @@ import (
"net/http"
"net/http/httptest"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/donut"
"github.com/minio/minio/pkg/server/api"
. "gopkg.in/check.v1"
)
type MyAPIDonutCacheSuite struct {
+1 -1
View File
@@ -28,9 +28,9 @@ import (
"net/http"
"net/http/httptest"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/donut"
"github.com/minio/minio/pkg/server/api"
. "gopkg.in/check.v1"
)
type MyAPIDonutSuite struct {
+1 -1
View File
@@ -28,10 +28,10 @@ import (
"net/http"
"net/http/httptest"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/donut"
"github.com/minio/minio/pkg/server/api"
. "gopkg.in/check.v1"
)
type MyAPISignatureV4Suite struct {
+1 -1
View File
@@ -31,7 +31,7 @@ import (
"syscall"
"time"
"github.com/minio/minio/internal/github.com/facebookgo/httpdown"
"github.com/facebookgo/httpdown"
"github.com/minio/minio/pkg/probe"
)
+1 -1
View File
@@ -19,7 +19,7 @@ package server
import (
"net/http"
router "github.com/minio/minio/internal/github.com/gorilla/mux"
router "github.com/gorilla/mux"
"github.com/minio/minio/pkg/server/api"
"github.com/minio/minio/pkg/server/rpc"
)
+2 -2
View File
@@ -19,8 +19,8 @@ package rpc
import (
"net/http"
"github.com/minio/minio/internal/github.com/gorilla/rpc/v2"
"github.com/minio/minio/internal/github.com/gorilla/rpc/v2/json"
"github.com/gorilla/rpc/v2"
"github.com/gorilla/rpc/v2/json"
)
// Server rpc server container
+2 -2
View File
@@ -20,10 +20,10 @@ import (
"net/http"
"net/http/httptest"
jsonrpc "github.com/minio/minio/internal/github.com/gorilla/rpc/v2/json"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
jsonrpc "github.com/gorilla/rpc/v2/json"
"github.com/minio/minio/pkg/controller"
"github.com/minio/minio/pkg/server/rpc"
. "gopkg.in/check.v1"
)
type MyRPCSuite struct{}
+1 -1
View File
@@ -32,7 +32,7 @@ import (
"time"
"unicode/utf8"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
// Hook up gocheck into the "go test" runner.
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"path/filepath"
"testing"
. "github.com/minio/minio/internal/gopkg.in/check.v1"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }