From 22935a52de3c7b718257669b3a2b16adfe158861 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 13 Dec 2020 00:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20go=20mod=20=E4=B8=8D?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/dashboard/controller/oauth2.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- model/user.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/dashboard/controller/oauth2.go b/cmd/dashboard/controller/oauth2.go index 15e7779..8682e6d 100644 --- a/cmd/dashboard/controller/oauth2.go +++ b/cmd/dashboard/controller/oauth2.go @@ -9,7 +9,7 @@ import ( "github.com/naiba/com" "github.com/gin-gonic/gin" - GitHubAPI "github.com/google/go-github/v28/github" + GitHubAPI "github.com/google/go-github/github" "golang.org/x/oauth2" "github.com/naiba/nezha/model" diff --git a/go.mod b/go.mod index 49557ad..24c22ca 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/fsnotify/fsnotify v1.4.9 github.com/gin-gonic/gin v1.6.3 github.com/golang/protobuf v1.4.2 - github.com/google/go-github/v28 v28.1.1 + github.com/google/go-github v17.0.0+incompatible github.com/gorilla/websocket v1.4.2 github.com/jinzhu/gorm v1.9.16 github.com/naiba/com v0.0.0-20191104074000-318339dc72a5 diff --git a/go.sum b/go.sum index 6ee6ca0..e1158dc 100644 --- a/go.sum +++ b/go.sum @@ -158,8 +158,8 @@ github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-github/v28 v28.1.1 h1:kORf5ekX5qwXO2mGzXXOjMe/g6ap8ahVe0sBEulhSxo= -github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM= +github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= +github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= github.com/google/go-github/v30 v30.1.0 h1:VLDx+UolQICEOKu2m4uAoMti1SxuEBAl7RSEG16L+Oo= github.com/google/go-github/v30 v30.1.0/go.mod h1:n8jBpHl45a/rlBUtRJMOG4GhNADUQFEufcolZ95JfU8= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= diff --git a/model/user.go b/model/user.go index 190f23a..d6a0129 100644 --- a/model/user.go +++ b/model/user.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/google/go-github/v28/github" + "github.com/google/go-github/github" "github.com/naiba/com" )