Skip to content

Commit

Permalink
Update go.mod to satisfy v2 requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed Jun 4, 2019
1 parent 7f7fe22 commit ed1901c
Show file tree
Hide file tree
Showing 47 changed files with 86 additions and 1,011 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/nats-io/nats-server
module github.com/nats-io/nats-server/v2

require (
github.com/nats-io/jwt v0.2.6
github.com/nats-io/nats.go v0.0.0-20190530175841-98d6600c35d5
github.com/nats-io/nats.go v1.8.0
github.com/nats-io/nkeys v0.0.2
github.com/nats-io/nuid v1.0.1
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5
golang.org/x/sys v0.0.0-20190531132440-69e3a3a65b5b
golang.org/x/sys v0.0.0-20190412213103-97732733099d
)
21 changes: 3 additions & 18 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/nats-io/jwt v0.2.6 h1:eAyoYvGgGLXR2EpnsBUvi/FcFrBqN6YKFVbOoEfPN4k=
github.com/nats-io/jwt v0.2.6/go.mod h1:mQxQ0uHQ9FhEVPIcTSKwx2lqZEpXWWcCgA7R6NrWvvY=
github.com/nats-io/nats-server v1.4.1/go.mod h1:c8f/fHd2B6Hgms3LtCaI7y6pC4WD1f4SUxcCud5vhBc=
github.com/nats-io/nats.go v0.0.0-20190530175841-98d6600c35d5 h1:rtLMupbGEj0GIE42MnpgqDPT1NVIhbKNCanPYN/xBcY=
github.com/nats-io/nats.go v0.0.0-20190530175841-98d6600c35d5/go.mod h1:lDA0FIyNEl18QqjzdvReBbUZ4AXBJJloRy1lw/blAKk=
github.com/nats-io/nats.go v1.8.0 h1:PXePcr71qzI9MMvQFfV0OBuNItkRQyyZowPfXzvdmVI=
github.com/nats-io/nats.go v1.8.0/go.mod h1:BrFz9vVn0fU3AcH9Vn4Kd7W0NpJ651tD5omQ3M8LwxM=
github.com/nats-io/nkeys v0.0.2 h1:+qM7QpgXnvDDixitZtQUBDY9w/s9mu1ghS+JIbsrx6M=
github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7TDb/4=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9 h1:mKdxBk7AujPs8kU4m80U72y/zjbZ3UcXC7dClwKbUI0=
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 h1:iMGN4xG0cnqj3t+zOM8wUB0BiPKHEwSxEZCvzcbZuvk=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 h1:8dUaAV7K4uHsF56JQWkprecIQKdPHtR9jCHF5nB8uzc=
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190509222800-a4d6f7feada5/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190509141414-a5b02f93d862 h1:rM0ROo5vb9AdYJi1110yjWGMej9ITfKddS89P3Fkhug=
golang.org/x/sys v0.0.0-20190509141414-a5b02f93d862/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190531132440-69e3a3a65b5b h1:cuzzKXORsbIjh3IeOgOj0x2QA08ntIxmwi1mkRC3qoc=
golang.org/x/sys v0.0.0-20190531132440-69e3a3a65b5b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190510151030-63859f3815cb/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"os"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

var usageStr = `
Expand Down
2 changes: 1 addition & 1 deletion server/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"time"

"github.com/nats-io/jwt"
"github.com/nats-io/nats-server/server/pse"
"github.com/nats-io/nats-server/v2/server/pse"
)

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

"github.com/nats-io/nats-server/logger"
"github.com/nats-io/nats-server/v2/logger"
"github.com/nats-io/nats.go"
)

Expand Down
2 changes: 1 addition & 1 deletion server/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"os"
"sync/atomic"

srvlog "github.com/nats-io/nats-server/logger"
srvlog "github.com/nats-io/nats-server/v2/logger"
)

// Logger interface of the NATS Server
Expand Down
2 changes: 1 addition & 1 deletion server/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sync"
"testing"

"github.com/nats-io/nats-server/logger"
"github.com/nats-io/nats-server/v2/logger"
)

func TestSetLogger(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion server/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"sync/atomic"
"time"

"github.com/nats-io/nats-server/server/pse"
"github.com/nats-io/nats-server/v2/server/pse"
)

// Snapshot this
Expand Down
2 changes: 1 addition & 1 deletion server/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"time"

"github.com/nats-io/jwt"
"github.com/nats-io/nats-server/conf"
"github.com/nats-io/nats-server/v2/conf"
"github.com/nats-io/nkeys"
)

Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
_ "net/http/pprof"

"github.com/nats-io/jwt"
"github.com/nats-io/nats-server/logger"
"github.com/nats-io/nats-server/v2/logger"
"github.com/nats-io/nkeys"
)

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

"github.com/nats-io/nats-server/logger"
"github.com/nats-io/nats-server/v2/logger"
)

func TestSignalToReOpenLogFile(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

func doAuthConnect(t tLogger, c net.Conn, token, user, pass string) {
Expand Down
2 changes: 1 addition & 1 deletion test/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

const PERF_PORT = 8422
Expand Down
2 changes: 1 addition & 1 deletion test/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

// Helper function to check that a cluster is formed
Expand Down
2 changes: 1 addition & 1 deletion test/cluster_tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

func runTLSServers(t *testing.T) (srvA, srvB *server.Server, optsA, optsB *server.Options) {
Expand Down
2 changes: 1 addition & 1 deletion test/fanout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sync"
"testing"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
)

Expand Down
2 changes: 1 addition & 1 deletion test/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"regexp"
"testing"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

func testDefaultOptionsForGateway(name string) *server.Options {
Expand Down
2 changes: 1 addition & 1 deletion test/leafnode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"time"

"github.com/nats-io/jwt"
"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
"github.com/nats-io/nkeys"
)
Expand Down
2 changes: 1 addition & 1 deletion test/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
)

Expand Down
4 changes: 2 additions & 2 deletions test/new_routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/logger"
"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/logger"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
)

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

"github.com/nats-io/jwt"
"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
"github.com/nats-io/nkeys"
)
Expand Down
2 changes: 1 addition & 1 deletion test/pedantic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package test
import (
"testing"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

func runPedanticServer() *server.Server {
Expand Down
2 changes: 1 addition & 1 deletion test/ping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion test/port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strconv"
"testing"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

func TestResolveRandomPort(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/ports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

// waits until a calculated list of listeners is resolved or a timeout
Expand Down
2 changes: 1 addition & 1 deletion test/proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

const PROTO_TEST_PORT = 9922
Expand Down
2 changes: 1 addition & 1 deletion test/route_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

func runSeedServer(t *testing.T) (*server.Server, *server.Options) {
Expand Down
2 changes: 1 addition & 1 deletion test/routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
)

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

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
)

// So we can pass tests and benchmarks..
Expand Down
2 changes: 1 addition & 1 deletion test/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats-server/server"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
)

Expand Down
2 changes: 2 additions & 0 deletions vendor/github.com/nats-io/nats.go/.travis.yml

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

7 changes: 0 additions & 7 deletions vendor/github.com/nats-io/nats.go/go.mod

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

19 changes: 0 additions & 19 deletions vendor/github.com/nats-io/nats.go/go.sum

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

2 changes: 1 addition & 1 deletion vendor/github.com/nats-io/nats.go/nats.go

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

Loading

0 comments on commit ed1901c

Please sign in to comment.