aboutsummaryrefslogtreecommitdiff
path: root/pkg/context
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2019-10-23 23:03:17 -0700
committerGitHub <noreply@github.com>2019-10-23 23:03:17 -0700
commit613139e7bef81d3573e7988a47eb6765f3de347a (patch)
tree49de7277898d3ff47a122c072568edb8ed4c9ac9 /pkg/context
parentfb100dbf98f02e4c631d142ff0f52ec29ee2f00c (diff)
Enable Go modules (#5835)
* Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
Diffstat (limited to 'pkg/context')
-rw-r--r--pkg/context/api.go4
-rw-r--r--pkg/context/api_org.go2
-rw-r--r--pkg/context/auth.go6
-rw-r--r--pkg/context/context.go14
-rw-r--r--pkg/context/notice.go8
-rw-r--r--pkg/context/org.go6
-rw-r--r--pkg/context/repo.go6
-rw-r--r--pkg/context/user.go4
8 files changed, 25 insertions, 25 deletions
diff --git a/pkg/context/api.go b/pkg/context/api.go
index dec7cfba..c4812475 100644
--- a/pkg/context/api.go
+++ b/pkg/context/api.go
@@ -9,11 +9,11 @@ import (
"net/http"
"strings"
- "github.com/Unknwon/paginater"
+ "github.com/unknwon/paginater"
log "gopkg.in/clog.v1"
"gopkg.in/macaron.v1"
- "github.com/gogs/gogs/pkg/setting"
+ "gogs.io/gogs/pkg/setting"
)
type APIContext struct {
diff --git a/pkg/context/api_org.go b/pkg/context/api_org.go
index bb5afef5..11625ab4 100644
--- a/pkg/context/api_org.go
+++ b/pkg/context/api_org.go
@@ -5,7 +5,7 @@
package context
import (
- "github.com/gogs/gogs/models"
+ "gogs.io/gogs/models"
)
type APIOrganization struct {
diff --git a/pkg/context/auth.go b/pkg/context/auth.go
index facc9631..92ea7142 100644
--- a/pkg/context/auth.go
+++ b/pkg/context/auth.go
@@ -12,9 +12,9 @@ import (
"github.com/go-macaron/csrf"
"gopkg.in/macaron.v1"
- "github.com/gogs/gogs/pkg/auth"
- "github.com/gogs/gogs/pkg/setting"
- "github.com/gogs/gogs/pkg/tool"
+ "gogs.io/gogs/pkg/auth"
+ "gogs.io/gogs/pkg/setting"
+ "gogs.io/gogs/pkg/tool"
)
type ToggleOptions struct {
diff --git a/pkg/context/context.go b/pkg/context/context.go
index bcb87a9a..c4aa2e75 100644
--- a/pkg/context/context.go
+++ b/pkg/context/context.go
@@ -12,7 +12,7 @@ import (
"strings"
"time"
- "github.com/Unknwon/com"
+ "github.com/unknwon/com"
"github.com/go-macaron/cache"
"github.com/go-macaron/csrf"
"github.com/go-macaron/i18n"
@@ -20,12 +20,12 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/macaron.v1"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/auth"
- "github.com/gogs/gogs/pkg/form"
- "github.com/gogs/gogs/pkg/setting"
- "github.com/gogs/gogs/pkg/template"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/auth"
+ "gogs.io/gogs/pkg/form"
+ "gogs.io/gogs/pkg/setting"
+ "gogs.io/gogs/pkg/template"
)
// Context represents context of a request.
diff --git a/pkg/context/notice.go b/pkg/context/notice.go
index c5a749dd..191441f1 100644
--- a/pkg/context/notice.go
+++ b/pkg/context/notice.go
@@ -8,12 +8,12 @@ import (
"os"
"path"
- "github.com/Unknwon/com"
+ "github.com/unknwon/com"
log "gopkg.in/clog.v1"
- "github.com/gogs/gogs/pkg/markup"
- "github.com/gogs/gogs/pkg/setting"
- "github.com/gogs/gogs/pkg/tool"
+ "gogs.io/gogs/pkg/markup"
+ "gogs.io/gogs/pkg/setting"
+ "gogs.io/gogs/pkg/tool"
)
// renderNoticeBanner checks if a notice banner file exists and loads the message to display
diff --git a/pkg/context/org.go b/pkg/context/org.go
index 1ff962ee..9d243d80 100644
--- a/pkg/context/org.go
+++ b/pkg/context/org.go
@@ -9,9 +9,9 @@ import (
"gopkg.in/macaron.v1"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/setting"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/setting"
)
type Organization struct {
diff --git a/pkg/context/repo.go b/pkg/context/repo.go
index cb2413f8..20ccd0f0 100644
--- a/pkg/context/repo.go
+++ b/pkg/context/repo.go
@@ -14,9 +14,9 @@ import (
"github.com/gogs/git-module"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/setting"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/setting"
)
type PullRequest struct {
diff --git a/pkg/context/user.go b/pkg/context/user.go
index a2297da8..17c6f570 100644
--- a/pkg/context/user.go
+++ b/pkg/context/user.go
@@ -7,8 +7,8 @@ package context
import (
"gopkg.in/macaron.v1"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
)
// ParamsUser is the wrapper type of the target user defined by URL parameter, namely ':username'.