summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-03-09 12:51:51 +0100
committerValery Piashchynski <[email protected]>2023-03-09 12:51:51 +0100
commitd2d6d479780e56a44eaf4705534c916805830e6d (patch)
tree40004b64df39bbf222c1560e69f51b1e0cc50c81
parent5f615068e9cdeb70ba4c8f53013898e2c1e7991a (diff)
chore(deps): downgrade API version
-rw-r--r--.githooks/pre-commit10
-rw-r--r--go.mod4
-rw-r--r--go.sum6
-rw-r--r--internal/cli/workers/command.go2
-rw-r--r--internal/cli/workers/render.go2
5 files changed, 16 insertions, 8 deletions
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
new file mode 100644
index 00000000..907bebe4
--- /dev/null
+++ b/.githooks/pre-commit
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e -o pipefail
+
+if ! command -v golangci-lint &> /dev/null; then
+ echo "golangci-lint is not installed"
+ exit 1
+fi
+
+exec golangci-lint --build-tags=race run "$@"
diff --git a/go.mod b/go.mod
index e2290317..9de38bd4 100644
--- a/go.mod
+++ b/go.mod
@@ -9,7 +9,7 @@ require (
github.com/joho/godotenv v1.5.1
github.com/olekukonko/tablewriter v0.0.5
github.com/roadrunner-server/amqp/v4 v4.3.0
- github.com/roadrunner-server/api/v3 v3.2.1
+ github.com/roadrunner-server/api/v4 v4.1.0
github.com/roadrunner-server/app-logger/v4 v4.0.2
github.com/roadrunner-server/beanstalk/v4 v4.1.2
github.com/roadrunner-server/boltdb/v4 v4.2.2
@@ -133,7 +133,7 @@ require (
github.com/prometheus/procfs v0.9.0 // indirect
github.com/rabbitmq/amqp091-go v1.7.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
- github.com/roadrunner-server/api/v4 v4.2.0 // indirect
+ github.com/roadrunner-server/api/v3 v3.2.1 // indirect
github.com/roadrunner-server/tcplisten v1.3.0 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 // indirect
diff --git a/go.sum b/go.sum
index d45644c2..204722a6 100644
--- a/go.sum
+++ b/go.sum
@@ -448,7 +448,6 @@ github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyY
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
-github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
@@ -632,7 +631,6 @@ github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw=
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y=
-github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w=
@@ -780,8 +778,8 @@ github.com/roadrunner-server/amqp/v4 v4.3.0 h1:X5LB1kEl22c8Z2v6dGgArPE9s4T1CP6wt
github.com/roadrunner-server/amqp/v4 v4.3.0/go.mod h1:V5sw1foA6IxZfCCTMZi0cfXHWUmEAglKMc+eueFJyE8=
github.com/roadrunner-server/api/v3 v3.2.1 h1:N4rokKVkN8Phoodbqtil90G65t2BqIWvHCKaxIKajvs=
github.com/roadrunner-server/api/v3 v3.2.1/go.mod h1:hlv546SS3tZVIDu68YekPCLS/82Y/AoS8Eu5xysvwBQ=
-github.com/roadrunner-server/api/v4 v4.2.0 h1:w6g3zIpNEQRNxyAZbFPmRjl45oZvQjufjk9PXxx5BII=
-github.com/roadrunner-server/api/v4 v4.2.0/go.mod h1:IjNTjfefcwRyc/RoquIYRmUuLYQTcL1UQk2GVfP0m0c=
+github.com/roadrunner-server/api/v4 v4.1.0 h1:VDFYfcLKCKi4hAsVNhRkbJ8yYVBY8vCdcmBDVtvBdI8=
+github.com/roadrunner-server/api/v4 v4.1.0/go.mod h1:IjNTjfefcwRyc/RoquIYRmUuLYQTcL1UQk2GVfP0m0c=
github.com/roadrunner-server/app-logger/v4 v4.0.2 h1:JBYMkh0gl5hgkeTzW7H/DFPk3ZGSPuFjHmC+JkrXmnk=
github.com/roadrunner-server/app-logger/v4 v4.0.2/go.mod h1:sqEfHaQy98fbAxD9zbEHIUN6p07WMDN8XDEvl58nECg=
github.com/roadrunner-server/beanstalk/v4 v4.1.2 h1:NAyDePY3KbacKeBJqSQPq6MBrXboxIkJRjLshFU96yM=
diff --git a/internal/cli/workers/command.go b/internal/cli/workers/command.go
index 2af03745..f23d9263 100644
--- a/internal/cli/workers/command.go
+++ b/internal/cli/workers/command.go
@@ -8,7 +8,7 @@ import (
"syscall"
"time"
- "github.com/roadrunner-server/api/v3/plugins/v1/jobs"
+ "github.com/roadrunner-server/api/v4/plugins/v1/jobs"
internalRpc "github.com/roadrunner-server/roadrunner/v2023/internal/rpc"
tm "github.com/buger/goterm"
diff --git a/internal/cli/workers/render.go b/internal/cli/workers/render.go
index dd9ea183..997a88f7 100644
--- a/internal/cli/workers/render.go
+++ b/internal/cli/workers/render.go
@@ -9,7 +9,7 @@ import (
"github.com/dustin/go-humanize"
"github.com/fatih/color"
"github.com/olekukonko/tablewriter"
- "github.com/roadrunner-server/api/v3/plugins/v1/jobs"
+ "github.com/roadrunner-server/api/v4/plugins/v1/jobs"
"github.com/roadrunner-server/sdk/v4/state/process"
)