Check for go.mod validity (#605)
This commit is contained in:
parent
7dcbba2541
commit
6d401a4351
@ -49,6 +49,7 @@ matrix:
|
|||||||
script:
|
script:
|
||||||
- ./scripts/check-for-header.sh
|
- ./scripts/check-for-header.sh
|
||||||
- golangci-lint run
|
- golangci-lint run
|
||||||
|
- gospace istidy
|
||||||
|
|
||||||
### captplanet tests ###
|
### captplanet tests ###
|
||||||
- env: MODE=integration
|
- env: MODE=integration
|
||||||
|
3
go.mod
3
go.mod
@ -19,7 +19,6 @@ require (
|
|||||||
github.com/elazarl/go-bindata-assetfs v1.0.0 // indirect
|
github.com/elazarl/go-bindata-assetfs v1.0.0 // indirect
|
||||||
github.com/fatih/color v1.7.0 // indirect
|
github.com/fatih/color v1.7.0 // indirect
|
||||||
github.com/fatih/structs v1.0.0 // indirect
|
github.com/fatih/structs v1.0.0 // indirect
|
||||||
github.com/go-bindata/go-bindata v1.0.0
|
|
||||||
github.com/go-redis/redis v6.14.1+incompatible
|
github.com/go-redis/redis v6.14.1+incompatible
|
||||||
github.com/gogo/protobuf v1.1.1
|
github.com/gogo/protobuf v1.1.1
|
||||||
github.com/golang-migrate/migrate/v3 v3.5.2
|
github.com/golang-migrate/migrate/v3 v3.5.2
|
||||||
@ -89,7 +88,7 @@ require (
|
|||||||
go.uber.org/zap v1.9.1
|
go.uber.org/zap v1.9.1
|
||||||
golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941
|
golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941
|
||||||
golang.org/x/net v0.0.0-20181003013248-f5e5bdd77824
|
golang.org/x/net v0.0.0-20181003013248-f5e5bdd77824
|
||||||
golang.org/x/sys v0.0.0-20181005133103-4497e2df6f9e
|
golang.org/x/sys v0.0.0-20181011152604-fa43e7bc11ba
|
||||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2 // indirect
|
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2 // indirect
|
||||||
google.golang.org/grpc v1.15.0
|
google.golang.org/grpc v1.15.0
|
||||||
gopkg.in/Shopify/sarama.v1 v1.18.0 // indirect
|
gopkg.in/Shopify/sarama.v1 v1.18.0 // indirect
|
||||||
|
7
go.sum
7
go.sum
@ -82,8 +82,6 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
|
|||||||
github.com/fsouza/fake-gcs-server v1.2.0/go.mod h1:rM69NBSmfAkTlKDhzXC41OeX9lQxQXnkimkiGWDU1Ek=
|
github.com/fsouza/fake-gcs-server v1.2.0/go.mod h1:rM69NBSmfAkTlKDhzXC41OeX9lQxQXnkimkiGWDU1Ek=
|
||||||
github.com/garyburd/redigo v1.0.1-0.20170216214944-0d253a66e6e1 h1:YmyuMm99D7kezPc0ZVWYnaUIWfMKR81lVVXttKTnDbw=
|
github.com/garyburd/redigo v1.0.1-0.20170216214944-0d253a66e6e1 h1:YmyuMm99D7kezPc0ZVWYnaUIWfMKR81lVVXttKTnDbw=
|
||||||
github.com/garyburd/redigo v1.0.1-0.20170216214944-0d253a66e6e1/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY=
|
github.com/garyburd/redigo v1.0.1-0.20170216214944-0d253a66e6e1/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY=
|
||||||
github.com/go-bindata/go-bindata v1.0.0 h1:upAQEGKG3hFv00/4cU/VhzF+NpCHz+Jk3rO946wWr+A=
|
|
||||||
github.com/go-bindata/go-bindata v1.0.0/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo=
|
|
||||||
github.com/go-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
|
github.com/go-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
|
||||||
github.com/go-ini/ini v1.38.2 h1:6Hl/z3p3iFkA0dlDfzYxuFuUGD+kaweypF6btsR2/Q4=
|
github.com/go-ini/ini v1.38.2 h1:6Hl/z3p3iFkA0dlDfzYxuFuUGD+kaweypF6btsR2/Q4=
|
||||||
github.com/go-ini/ini v1.38.2/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
|
github.com/go-ini/ini v1.38.2/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
|
||||||
@ -171,7 +169,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
|||||||
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/kshvakov/clickhouse v1.3.4/go.mod h1:DMzX7FxRymoNkVgizH0DWAL8Cur7wHLgx3MUnGwJqpE=
|
github.com/kshvakov/clickhouse v1.3.4/go.mod h1:DMzX7FxRymoNkVgizH0DWAL8Cur7wHLgx3MUnGwJqpE=
|
||||||
github.com/lib/pq v0.0.0-20180523175426-90697d60dd84/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
|
||||||
github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A=
|
github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A=
|
||||||
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/loov/hrtime v0.0.0-20180911122900-a9e82bc6c180 h1:kLwg5eA/kaWQ/RwANTH7Gg+VdxmdjbcSWyaS/1VQGkA=
|
github.com/loov/hrtime v0.0.0-20180911122900-a9e82bc6c180 h1:kLwg5eA/kaWQ/RwANTH7Gg+VdxmdjbcSWyaS/1VQGkA=
|
||||||
@ -345,8 +342,8 @@ golang.org/x/sys v0.0.0-20180824143301-4910a1d54f87/go.mod h1:STP8DvDyc/dI5b8T5h
|
|||||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180906133057-8cf3aee42992/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180906133057-8cf3aee42992/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20181005133103-4497e2df6f9e h1:EfdBzeKbFSvOjoIqSZcfS8wp0FBLokGBEs9lz1OtSg0=
|
golang.org/x/sys v0.0.0-20181011152604-fa43e7bc11ba h1:nZJIJPGow0Kf9bU9QTc1U6OXbs/7Hu4e+cNv+hxH+Zc=
|
||||||
golang.org/x/sys v0.0.0-20181005133103-4497e2df6f9e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20181011152604-fa43e7bc11ba/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2 h1:+DCIGbF/swA92ohVg0//6X2IVY3KZs6p9mix0ziNYJM=
|
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2 h1:+DCIGbF/swA92ohVg0//6X2IVY3KZs6p9mix0ziNYJM=
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/jtolds/monkit-hw"
|
hw "github.com/jtolds/monkit-hw"
|
||||||
"github.com/zeebo/admission/admproto"
|
"github.com/zeebo/admission/admproto"
|
||||||
"gopkg.in/spacemonkeygo/monkit.v2"
|
"gopkg.in/spacemonkeygo/monkit.v2"
|
||||||
"gopkg.in/spacemonkeygo/monkit.v2/environment"
|
"gopkg.in/spacemonkeygo/monkit.v2/environment"
|
||||||
|
@ -6,11 +6,11 @@ package sdbclient
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"gopkg.in/spacemonkeygo/monkit.v2"
|
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
||||||
"storj.io/storj/pkg/transport"
|
|
||||||
|
|
||||||
"storj.io/storj/pkg/provider"
|
"storj.io/storj/pkg/provider"
|
||||||
pb "storj.io/storj/pkg/statdb/proto"
|
pb "storj.io/storj/pkg/statdb/proto"
|
||||||
|
"storj.io/storj/pkg/transport"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -13,7 +13,7 @@ $env:GOSPACE_REPO="git@github.com:storj/storj.git"
|
|||||||
|
|
||||||
# setup gospace
|
# setup gospace
|
||||||
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
|
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
|
||||||
Invoke-WebRequest -Uri "https://github.com/storj/gospace/releases/download/v0.0.1/gospace_windows_amd64.exe" -OutFile "$xhome/bin/gospace.exe"
|
Invoke-WebRequest -Uri "https://github.com/storj/gospace/releases/download/v0.0.5/gospace_windows_amd64.exe" -OutFile "$xhome/bin/gospace.exe"
|
||||||
|
|
||||||
# find module dependency hash
|
# find module dependency hash
|
||||||
$modhash = gospace hash
|
$modhash = gospace hash
|
||||||
|
@ -8,7 +8,7 @@ export GOSPACE_PKG=storj.io/storj
|
|||||||
export GOSPACE_REPO=git@github.com:storj/storj/git
|
export GOSPACE_REPO=git@github.com:storj/storj/git
|
||||||
|
|
||||||
# setup gospace
|
# setup gospace
|
||||||
wget -O ~/bin/gospace https://github.com/storj/gospace/releases/download/v0.0.1/gospace_linux_amd64
|
wget -O ~/bin/gospace https://github.com/storj/gospace/releases/download/v0.0.5/gospace_linux_amd64
|
||||||
chmod +x ~/bin/gospace
|
chmod +x ~/bin/gospace
|
||||||
|
|
||||||
# find module dependency hash
|
# find module dependency hash
|
||||||
|
@ -8,11 +8,6 @@ package schema
|
|||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// this isn't strictly necessary to import, but we just need the go-bindata
|
|
||||||
// binary for the above generate, and go mod tidy wants to remove
|
|
||||||
// go-bindata because nothing else is importing it. better solutions?
|
|
||||||
_ "github.com/go-bindata/go-bindata"
|
|
||||||
|
|
||||||
"github.com/golang-migrate/migrate/v3"
|
"github.com/golang-migrate/migrate/v3"
|
||||||
"github.com/golang-migrate/migrate/v3/database/postgres"
|
"github.com/golang-migrate/migrate/v3/database/postgres"
|
||||||
"github.com/golang-migrate/migrate/v3/source/go_bindata"
|
"github.com/golang-migrate/migrate/v3/source/go_bindata"
|
||||||
|
Loading…
Reference in New Issue
Block a user