From fdd871e1775d1b6d85de43e8ecf7ddc71a72c503 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 2 Jul 2019 12:37:06 -0600 Subject: go.mod: Append /v2 to module name; update all import paths See https://github.com/golang/go/wiki/Modules#semantic-import-versioning --- modules/caddyhttp/fileserver/browse.go | 4 ++-- modules/caddyhttp/fileserver/browselisting.go | 2 +- modules/caddyhttp/fileserver/matcher.go | 4 ++-- modules/caddyhttp/fileserver/staticfiles.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/caddyhttp/fileserver') diff --git a/modules/caddyhttp/fileserver/browse.go b/modules/caddyhttp/fileserver/browse.go index 9dd09e9..e0e6de2 100644 --- a/modules/caddyhttp/fileserver/browse.go +++ b/modules/caddyhttp/fileserver/browse.go @@ -23,8 +23,8 @@ import ( "path" "strings" - "github.com/caddyserver/caddy" - "github.com/caddyserver/caddy/modules/caddyhttp" + "github.com/caddyserver/caddy/v2" + "github.com/caddyserver/caddy/v2/modules/caddyhttp" ) // Browse configures directory browsing. diff --git a/modules/caddyhttp/fileserver/browselisting.go b/modules/caddyhttp/fileserver/browselisting.go index d81e86c..b2349f8 100644 --- a/modules/caddyhttp/fileserver/browselisting.go +++ b/modules/caddyhttp/fileserver/browselisting.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "github.com/caddyserver/caddy" + "github.com/caddyserver/caddy/v2" "github.com/dustin/go-humanize" ) diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go index 2ff873f..da36eaa 100644 --- a/modules/caddyhttp/fileserver/matcher.go +++ b/modules/caddyhttp/fileserver/matcher.go @@ -18,8 +18,8 @@ import ( "net/http" "os" - "github.com/caddyserver/caddy" - "github.com/caddyserver/caddy/modules/caddyhttp" + "github.com/caddyserver/caddy/v2" + "github.com/caddyserver/caddy/v2/modules/caddyhttp" ) func init() { diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go index ff48961..67a337b 100644 --- a/modules/caddyhttp/fileserver/staticfiles.go +++ b/modules/caddyhttp/fileserver/staticfiles.go @@ -27,8 +27,8 @@ import ( "strings" "time" - "github.com/caddyserver/caddy" - "github.com/caddyserver/caddy/modules/caddyhttp" + "github.com/caddyserver/caddy/v2" + "github.com/caddyserver/caddy/v2/modules/caddyhttp" ) func init() { -- cgit v1.2.3