From 613139e7bef81d3573e7988a47eb6765f3de347a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 23 Oct 2019 23:03:17 -0700 Subject: 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 --- pkg/template/highlight/highlight.go | 2 +- pkg/template/template.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pkg/template') diff --git a/pkg/template/highlight/highlight.go b/pkg/template/highlight/highlight.go index 11b3967f..0a943f9b 100644 --- a/pkg/template/highlight/highlight.go +++ b/pkg/template/highlight/highlight.go @@ -8,7 +8,7 @@ import ( "path" "strings" - "github.com/gogs/gogs/pkg/setting" + "gogs.io/gogs/pkg/setting" ) var ( diff --git a/pkg/template/template.go b/pkg/template/template.go index 6d6d09da..97bd7a18 100644 --- a/pkg/template/template.go +++ b/pkg/template/template.go @@ -21,10 +21,10 @@ import ( log "gopkg.in/clog.v1" "gopkg.in/editorconfig/editorconfig-core-go.v1" - "github.com/gogs/gogs/models" - "github.com/gogs/gogs/pkg/markup" - "github.com/gogs/gogs/pkg/setting" - "github.com/gogs/gogs/pkg/tool" + "gogs.io/gogs/models" + "gogs.io/gogs/pkg/markup" + "gogs.io/gogs/pkg/setting" + "gogs.io/gogs/pkg/tool" ) // TODO: only initialize map once and save to a local variable to reduce copies. -- cgit v1.2.3