Skip to content

Commit

Permalink
refactor: use blang/semver v4
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Aug 2, 2024
1 parent 3807bd3 commit 7299509
Show file tree
Hide file tree
Showing 54 changed files with 121 additions and 139 deletions.
2 changes: 1 addition & 1 deletion daemon/api/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/aperturerobotics/starpc/srpc"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion daemon/api/controller/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// ControllerID identifies the API controller.
Expand Down
2 changes: 1 addition & 1 deletion entitygraph/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package bifrost_entitygraph
import (
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/entitygraph/reporter"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Version is the version of the controller implementation.
Expand Down
2 changes: 1 addition & 1 deletion entitygraph/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
rctr "github.com/aperturerobotics/entitygraph/reporter/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a EntityGraph reporter controller.
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-host/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"

Expand Down
2 changes: 1 addition & 1 deletion examples/nats-host/nats-single/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"os/signal"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"

Expand Down
9 changes: 5 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ go 1.22

require (
github.com/aperturerobotics/common v0.18.3 // latest
github.com/aperturerobotics/controllerbus v0.47.2 // latest
github.com/aperturerobotics/entitygraph v0.9.1 // latest
github.com/aperturerobotics/controllerbus v0.47.3 // latest
github.com/aperturerobotics/entitygraph v0.10.0 // latest
github.com/aperturerobotics/protobuf-go-lite v0.6.5 // latest
github.com/aperturerobotics/starpc v0.33.6 // latest
github.com/aperturerobotics/util v1.25.7-0.20240802075949-372f05d3a13f // latest
github.com/aperturerobotics/util v1.25.7 // latest
)

// aperture: use compatibility forks
Expand All @@ -28,7 +28,6 @@ replace (

require (
filippo.io/edwards25519 v1.1.1-0.20231210192602-a7dfd8e4e6b4
github.com/blang/semver v3.5.1+incompatible
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/klauspost/compress v1.17.9
github.com/libp2p/go-libp2p v0.35.4
Expand All @@ -53,6 +52,8 @@ require (
nhooyr.io/websocket v1.8.11 // master
)

require github.com/blang/semver/v4 v4.0.0

require (
github.com/aperturerobotics/json-iterator-lite v1.0.0 // indirect
github.com/cloudflare/circl v1.3.8 // indirect
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ github.com/aperturerobotics/bifrost-nats-server/v2 v2.1.8-0.20221228081037-b7c2d
github.com/aperturerobotics/bifrost-nats-server/v2 v2.1.8-0.20221228081037-b7c2df0c151f/go.mod h1:kIcZtLpq4UIZzOqduYLm1mYU1nuMBtN6XuDCtQ21QT8=
github.com/aperturerobotics/common v0.18.3 h1:DicdT7Yi9xlHMgJOiH1ypkRGt/TOctWWgVfdgh4p+H4=
github.com/aperturerobotics/common v0.18.3/go.mod h1:qLWqm2T9MQmxDtE1ddNdWCHnUj1Z66GzNxllkZ3Fj7Y=
github.com/aperturerobotics/controllerbus v0.47.2 h1:BKPoRY5FRhS0AWTe0DgpsyvKy+invnFgC8ZHSuz8W9M=
github.com/aperturerobotics/controllerbus v0.47.2/go.mod h1:bbLYOlppStRVjtRbbXSB72W4aFrPMKx7oUb814A8/dI=
github.com/aperturerobotics/entitygraph v0.9.1 h1:bCl0Q9N1hkQnOtdCYz7pNSYqH+5CY3EUCuD19dQmJeI=
github.com/aperturerobotics/entitygraph v0.9.1/go.mod h1:40VoNXSslWQieSS4V3HyzqOOZnRiGxItj/qZYSHg8Rw=
github.com/aperturerobotics/controllerbus v0.47.3 h1:aAV3V2AtNB9QPZLVt0EXFrDtx7b6wJY1Dn6tvDqTSBQ=
github.com/aperturerobotics/controllerbus v0.47.3/go.mod h1:xC8DSXk0J5Q/Cc5G4MxAlseJEuJpoeuld6R44lYw074=
github.com/aperturerobotics/entitygraph v0.10.0 h1:fotjtv+XWqWA6LbIrGsjiP/FLa/QdROfQ1/URAH2zhE=
github.com/aperturerobotics/entitygraph v0.10.0/go.mod h1:wg3nnABfmWPasK0FZzwU2lSq3CD6bvDHf8eEqHrDuBc=
github.com/aperturerobotics/go-libp2p v0.33.1-0.20240511223728-e0b67c111765 h1:KTSK6vPrh6gaT6CH0G2yAnmlcdjsc9Bk5JCqSeePrUw=
github.com/aperturerobotics/go-libp2p v0.33.1-0.20240511223728-e0b67c111765/go.mod h1:/TIElEA8TzmHQTgGJQyzg0zHNZRCMYbdKyOsKwn9i6E=
github.com/aperturerobotics/go-libp2p-msgio v0.0.0-20240511033615-1b69178aa5c8 h1:S9prTCDvkYfJ9ATV+B1yoNESE5w5dbFM5GmriXRG0Lk=
Expand All @@ -28,10 +28,10 @@ github.com/aperturerobotics/quic-go v0.45.1-0.20240802054753-f83427ffc2c6 h1:MZN
github.com/aperturerobotics/quic-go v0.45.1-0.20240802054753-f83427ffc2c6/go.mod h1:X095EBMI8M7riYQRvUgegHFkEkgM2QKLvyGHyAcOw/Q=
github.com/aperturerobotics/starpc v0.33.6 h1:noc/MnmIMTek9bdEvd88QiD1p9KzEV8CUOBIoKmGgm0=
github.com/aperturerobotics/starpc v0.33.6/go.mod h1:4IYcbulEzqhPT5jKaDeL1BJPFd8WVWZ7Ugu0/348/Is=
github.com/aperturerobotics/util v1.25.7-0.20240802075949-372f05d3a13f h1:YIqFbDLHyly/Nmwo0+EYA/W8YEkopcMHDWhih0BNajw=
github.com/aperturerobotics/util v1.25.7-0.20240802075949-372f05d3a13f/go.mod h1:DdflF5HvWF01S4MNnSV9O5LR0SGajkx0wDIiXTsNtFc=
github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
github.com/aperturerobotics/util v1.25.7 h1:e9fdF3W/E7IHdl7YAJC0jjuxGph7yzE3a5zZoLFJ3G0=
github.com/aperturerobotics/util v1.25.7/go.mod h1:G5ybyxaL62Rdv0K5ZGqu+D1NfqlZCLYPQhdfiYhxlAg=
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/cloudflare/circl v1.3.8 h1:j+V8jJt09PoeMFIu2uh5JUyEaIHTXVOHslFoLNAKqwI=
Expand Down
2 changes: 1 addition & 1 deletion http/listener/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs the http listener
Expand Down
2 changes: 1 addition & 1 deletion http/listener/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion http/mock-handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/aperturerobotics/bifrost/testbed"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

var mockBody = []byte("hello world")
Expand Down
2 changes: 1 addition & 1 deletion link/establish/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion link/establish/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a Link establish controller.
Expand Down
2 changes: 1 addition & 1 deletion link/hold-open/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion link/hold-open/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a Link Hold-Open controller.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"singleQuote": true
},
"devDependencies": {
"@aptre/common": "^0.18.0",
"@aptre/common": "^0.18.3",
"depcheck": "^1.4.6",
"prettier": "^3.1.1",
"rimraf": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion peer/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/bifrost/peer"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion peer/controller/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a Peer controller.
Expand Down
2 changes: 1 addition & 1 deletion pubsub/floodsub/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package floodsub_controller

import (
pubsub_controller "github.com/aperturerobotics/bifrost/pubsub/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Version is the version of the controller implementation.
Expand Down
2 changes: 1 addition & 1 deletion pubsub/floodsub/controller/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pubsub/nats/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package nats_controller

import (
pubsub_controller "github.com/aperturerobotics/bifrost/pubsub/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Version is the version of the controller implementation.
Expand Down
2 changes: 1 addition & 1 deletion pubsub/nats/controller/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pubsub/relay/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pubsub/relay/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a pubsub relay controller.
Expand Down
2 changes: 1 addition & 1 deletion rpc/access/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aperturerobotics/controllerbus/core"
"github.com/aperturerobotics/starpc/echo"
"github.com/aperturerobotics/starpc/srpc"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion rpc/rpc-service-controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/starpc/echo"
"github.com/aperturerobotics/starpc/srpc"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion signaling/echo/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/controllerbus/directive"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Version is the version of the controller.
Expand Down
2 changes: 1 addition & 1 deletion signaling/rpc/client/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/aperturerobotics/controllerbus/directive"
"github.com/aperturerobotics/util/ccontainer"
"github.com/aperturerobotics/util/keyed"
"github.com/blang/semver"
"github.com/blang/semver/v4"
cbackoff "github.com/cenkalti/backoff"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion signaling/rpc/client/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a Signaling RPC Client.
Expand Down
2 changes: 1 addition & 1 deletion signaling/rpc/server/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/starpc/srpc"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion signaling/rpc/server/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a WebSocket transport.
Expand Down
2 changes: 1 addition & 1 deletion stream/api/accept/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// ControllerID identifies the accept controller.
Expand Down
2 changes: 1 addition & 1 deletion stream/echo/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// ControllerID identifies the echo controller.
Expand Down
2 changes: 1 addition & 1 deletion stream/forwarding/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// ControllerID identifies the forwarding controller.
Expand Down
2 changes: 1 addition & 1 deletion stream/listening/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// ControllerID identifies the listening controller.
Expand Down
2 changes: 1 addition & 1 deletion stream/relay/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// ControllerID identifies the relay controller.
Expand Down
2 changes: 1 addition & 1 deletion stream/srpc/client/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
stream_srpc_client "github.com/aperturerobotics/bifrost/stream/srpc/client"
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion stream/srpc/client/controller/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aperturerobotics/controllerbus/bus"
"github.com/aperturerobotics/controllerbus/config"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// Factory constructs a controller factory.
Expand Down
2 changes: 1 addition & 1 deletion stream/srpc/srpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/aperturerobotics/bifrost/transport/inproc"
"github.com/aperturerobotics/controllerbus/controller"
"github.com/aperturerobotics/starpc/echo"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
Expand Down
Loading

0 comments on commit 7299509

Please sign in to comment.