Commit 887f23a3 authored by Yoan Blanc's avatar Yoan Blanc Committed by Mahmood Ali
Browse files

vendor: explicit use of hashicorp/go-msgpack

Signed-off-by: default avatarYoan Blanc <yoan@dosimple.ch>
parent 2604f70f
Showing with 20 additions and 20 deletions
+20 -20
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"github.com/hashicorp/nomad/command/agent/pprof" "github.com/hashicorp/nomad/command/agent/pprof"
"github.com/hashicorp/nomad/helper" "github.com/hashicorp/nomad/helper"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
metrics "github.com/armon/go-metrics" metrics "github.com/armon/go-metrics"
log "github.com/hashicorp/go-hclog" log "github.com/hashicorp/go-hclog"
......
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
"github.com/hashicorp/nomad/testutil" "github.com/hashicorp/nomad/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
func TestMonitor_Monitor(t *testing.T) { func TestMonitor_Monitor(t *testing.T) {
......
...@@ -16,7 +16,7 @@ import ( ...@@ -16,7 +16,7 @@ import (
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
nstructs "github.com/hashicorp/nomad/nomad/structs" nstructs "github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/plugins/drivers" "github.com/hashicorp/nomad/plugins/drivers"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// Allocations endpoint is used for interacting with client allocations // Allocations endpoint is used for interacting with client allocations
......
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
"github.com/hashicorp/nomad/plugins/drivers" "github.com/hashicorp/nomad/plugins/drivers"
"github.com/hashicorp/nomad/testutil" "github.com/hashicorp/nomad/testutil"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
) )
......
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
"github.com/hashicorp/nomad/helper" "github.com/hashicorp/nomad/helper"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/hpcloud/tail/watch" "github.com/hpcloud/tail/watch"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
var ( var (
......
...@@ -28,7 +28,7 @@ import ( ...@@ -28,7 +28,7 @@ import (
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil" "github.com/hashicorp/nomad/testutil"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// tempAllocDir returns a new alloc dir that is rooted in a temp dir. The caller // tempAllocDir returns a new alloc dir that is rooted in a temp dir. The caller
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"github.com/hashicorp/nomad/helper/pool" "github.com/hashicorp/nomad/helper/pool"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/yamux" "github.com/hashicorp/yamux"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// rpcEndpoints holds the RPC endpoints // rpcEndpoints holds the RPC endpoints
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
hclog "github.com/hashicorp/go-hclog" hclog "github.com/hashicorp/go-hclog"
"github.com/hashicorp/nomad/helper/boltdd" "github.com/hashicorp/nomad/helper/boltdd"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// NeedsUpgrade returns true if the BoltDB needs upgrading or false if it is // NeedsUpgrade returns true if the BoltDB needs upgrading or false if it is
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
cstructs "github.com/hashicorp/nomad/client/structs" cstructs "github.com/hashicorp/nomad/client/structs"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// StreamingRPC may be satisfied by client.Client or server.Server. // StreamingRPC may be satisfied by client.Client or server.Server.
......
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/serf/serf" "github.com/hashicorp/serf/serf"
"github.com/mitchellh/copystructure" "github.com/mitchellh/copystructure"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
type Member struct { type Member struct {
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
cstructs "github.com/hashicorp/nomad/client/structs" cstructs "github.com/hashicorp/nomad/client/structs"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/plugins/drivers" "github.com/hashicorp/nomad/plugins/drivers"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
const ( const (
......
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
"github.com/docker/docker/pkg/ioutils" "github.com/docker/docker/pkg/ioutils"
cstructs "github.com/hashicorp/nomad/client/structs" cstructs "github.com/hashicorp/nomad/client/structs"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
var ( var (
......
...@@ -22,7 +22,7 @@ import ( ...@@ -22,7 +22,7 @@ import (
"github.com/hashicorp/nomad/helper/tlsutil" "github.com/hashicorp/nomad/helper/tlsutil"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/rs/cors" "github.com/rs/cors"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
const ( const (
......
...@@ -24,7 +24,7 @@ import ( ...@@ -24,7 +24,7 @@ import (
"github.com/hashicorp/nomad/testutil" "github.com/hashicorp/nomad/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// makeHTTPServer returns a test server whose logs will be written to // makeHTTPServer returns a test server whose logs will be written to
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"io" "io"
"text/template" "text/template"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
var ( var (
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
"golang.org/x/crypto/blake2b" "golang.org/x/crypto/blake2b"
) )
......
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"github.com/hashicorp/nomad/nomad/mock" "github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
type testingT interface { type testingT interface {
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"github.com/hashicorp/nomad/plugins/shared/hclspec" "github.com/hashicorp/nomad/plugins/shared/hclspec"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )
......
package hclutils package hclutils
import ( import (
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
) )
// MapStrInt is a wrapper for map[string]int that handles // MapStrInt is a wrapper for map[string]int that handles
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
hjson "github.com/hashicorp/hcl2/hcl/json" hjson "github.com/hashicorp/hcl2/hcl/json"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl2/hcldec"
"github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs"
"github.com/ugorji/go/codec" "github.com/hashicorp/go-msgpack/codec"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"
"github.com/zclconf/go-cty/cty/function/stdlib" "github.com/zclconf/go-cty/cty/function/stdlib"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment