update dependencies

fix issue preventing compilation
format project
This commit is contained in:
Niko Storni 2018-06-11 17:41:55 -04:00
parent 681a623ddf
commit e74070259e
No known key found for this signature in database
GPG key ID: F37FE63398800368
3 changed files with 33 additions and 28 deletions

54
Gopkg.lock generated
View file

@ -4,8 +4,8 @@
[[projects]]
name = "github.com/PuerkitoBio/goquery"
packages = ["."]
revision = "09540e565986583836b5fc792fe951ec5fd201dd"
version = "v1.3.0"
revision = "dc2ec5c7ca4d9aae063b79b9f581dd3ea6afd2b2"
version = "v1.4.1"
[[projects]]
name = "github.com/andybalholm/cascadia"
@ -26,14 +26,19 @@
"aws/credentials/ec2rolecreds",
"aws/credentials/endpointcreds",
"aws/credentials/stscreds",
"aws/csm",
"aws/defaults",
"aws/ec2metadata",
"aws/endpoints",
"aws/request",
"aws/session",
"aws/signer/v4",
"internal/sdkio",
"internal/sdkrand",
"internal/shareddefaults",
"private/protocol",
"private/protocol/eventstream",
"private/protocol/eventstream/eventstreamapi",
"private/protocol/query",
"private/protocol/query/queryutil",
"private/protocol/rest",
@ -44,8 +49,8 @@
"service/s3/s3manager",
"service/sts"
]
revision = "b69f447375c7fa0047ebcdd8ae5d585d5aac2f71"
version = "v1.10.51"
revision = "d2d4fca90395039f60821c231da759cab8f318c7"
version = "v1.14.4"
[[projects]]
branch = "master"
@ -58,7 +63,7 @@
"rpcclient",
"wire"
]
revision = "2be2f12b358dc57d70b8f501b00be450192efbc3"
revision = "86fed781132ac890ee03e906e4ecd5d6fa180c64"
[[projects]]
branch = "master"
@ -74,7 +79,7 @@
"base58",
"bech32"
]
revision = "501929d3d046174c3d39f0ea54ece471aa17238c"
revision = "d4cc87b860166d00d6b5b9e0d3b3d71d6088d4d4"
[[projects]]
branch = "master"
@ -106,20 +111,20 @@
[[projects]]
name = "github.com/go-errors/errors"
packages = ["."]
revision = "3afebba5a48dbc89b574d890b6b34d9ee10b4785"
version = "v1.0.0"
revision = "a6af135bd4e28680facf08a3d206b454abc877a4"
version = "v1.0.1"
[[projects]]
branch = "master"
name = "github.com/go-ini/ini"
packages = ["."]
revision = "6ecc596bd756a16c6e93e4ef9225ecdb9f54ed2c"
revision = "06f5f3d67269ccec1fe5fe4134ba6e982984f7f5"
version = "v1.37.0"
[[projects]]
name = "github.com/golang/protobuf"
packages = ["proto"]
revision = "925541529c1fa6821df4e44ce2723319eb2be768"
version = "v1.0.0"
revision = "b4deda0973fb4c70b50d226b1af49f3da59f5265"
version = "v1.1.0"
[[projects]]
name = "github.com/gorilla/websocket"
@ -136,14 +141,13 @@
[[projects]]
name = "github.com/jmespath/go-jmespath"
packages = ["."]
revision = "3433f3ea46d9f8019119e7dd41274e112a2359a9"
version = "0.2.2"
revision = "0b12d6b5"
[[projects]]
branch = "master"
name = "github.com/lbryio/lbryschema.go"
packages = ["pb"]
revision = "dd814b834b5511d65d640bdbb46237f19f38a3e5"
revision = "185433f2fd0c732547654749b98b37e56223dd22"
[[projects]]
name = "github.com/lbryio/ozzo-validation"
@ -155,7 +159,7 @@
branch = "master"
name = "github.com/mitchellh/mapstructure"
packages = ["."]
revision = "00c29f56e2386353d58c599509e8dc3801b0d716"
revision = "bb74f1db0675b241733089d5a1faa5dd8b0ef57b"
[[projects]]
branch = "master"
@ -173,7 +177,7 @@
branch = "master"
name = "github.com/shopspring/decimal"
packages = ["."]
revision = "2df3e6ddaf6e9531dd02d7b6337f2d310f5e4f22"
revision = "19e3cb6c29303990525b56f51acf77c5630dd88a"
[[projects]]
name = "github.com/sirupsen/logrus"
@ -191,19 +195,19 @@
branch = "master"
name = "github.com/spf13/cobra"
packages = ["."]
revision = "c6c44e6fdcc30161c7f4480754da7230d01c06e3"
revision = "1e58aa3361fd650121dceeedc399e7189c05674a"
[[projects]]
name = "github.com/spf13/pflag"
packages = ["."]
revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
version = "v1.0.0"
revision = "583c0c0531f06d5278b7d917446061adc344b5cd"
version = "v1.0.1"
[[projects]]
branch = "master"
name = "github.com/ybbus/jsonrpc"
packages = ["."]
revision = "fc928e733a5753f0fe64b140714c8a6c53de07d8"
revision = "2a548b7d822dd62717337a6b1e817fae1b14660a"
[[projects]]
branch = "master"
@ -219,7 +223,7 @@
"sha3",
"ssh/terminal"
]
revision = "c4a91bd4f524f10d064139674cf55852e055ad01"
revision = "8ac0e0d97ce45cd83d1d7243c060cb8461dda5e9"
[[projects]]
branch = "master"
@ -230,7 +234,7 @@
"html",
"html/atom"
]
revision = "803fdb99c0f72e493c28ef2099d250a9c989d8ff"
revision = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196"
[[projects]]
branch = "master"
@ -239,7 +243,7 @@
"unix",
"windows"
]
revision = "8c0ece68c28377f4c326d85b94f8df0dace46f80"
revision = "bff228c7b664c5fce602223a05fb708fd8654986"
[[projects]]
branch = "master"
@ -251,7 +255,7 @@
"googleapi/transport",
"youtube/v3"
]
revision = "c24aa0e5ed34558ea50c016e4fb92c5e9aa69f2c"
revision = "ef86ce4234efee96020bde00391d6a9cfae66561"
[[projects]]
name = "gopkg.in/nullbio/null.v6"

View file

@ -29,9 +29,9 @@ import (
func publicKey(isPrivateRepo bool) (*rsa.PublicKey, error) {
var response *http.Response
var err error
if !isPrivateRepo{
if !isPrivateRepo {
response, err = http.Get("https://api.travis-ci.org/config")
}else{
} else {
response, err = http.Get("https://api.travis-ci.com/config")
}
if err != nil {
@ -76,7 +76,7 @@ func payloadDigest(payload string) []byte {
return hash.Sum(nil)
}
func ValidateSignature(isPrivateRepo bool,r *http.Request) error {
func ValidateSignature(isPrivateRepo bool, r *http.Request) error {
key, err := publicKey(isPrivateRepo)
if err != nil {
return errors.Err(err)

View file

@ -21,6 +21,7 @@ import (
"github.com/lbryio/lbry.go/stopOnce"
"github.com/lbryio/lbry.go/ytsync/redisdb"
"github.com/lbryio/lbry.go/ytsync/sources"
ps "github.com/old/mitchellh/go-ps"
log "github.com/sirupsen/logrus"
"google.golang.org/api/googleapi/transport"