From 7749962c24172c29fd8851afb86e923b5d5f369c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 29 Jun 2024 19:11:56 +0200 Subject: change error package --- internal/builder/builder.go | 2 +- internal/builder/template.go | 2 +- internal/config/config.go | 2 +- internal/config/cspgenerator.go | 2 +- internal/content/posts.go | 2 +- internal/listenfd/listenfd.go | 2 +- internal/server/dev.go | 2 +- internal/server/server.go | 2 +- internal/server/tls.go | 2 +- internal/vcs/repository.go | 2 +- internal/website/filemap.go | 2 +- internal/website/mux.go | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) (limited to 'internal') diff --git a/internal/builder/builder.go b/internal/builder/builder.go index f190b6a..0d4b1fc 100644 --- a/internal/builder/builder.go +++ b/internal/builder/builder.go @@ -18,7 +18,7 @@ import ( "github.com/a-h/templ" mapset "github.com/deckarep/golang-set/v2" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) type IOConfig struct { diff --git a/internal/builder/template.go b/internal/builder/template.go index 91a40c4..b50861b 100644 --- a/internal/builder/template.go +++ b/internal/builder/template.go @@ -15,7 +15,7 @@ import ( "github.com/PuerkitoBio/goquery" "github.com/antchfx/xmlquery" "github.com/antchfx/xpath" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) var ( diff --git a/internal/config/config.go b/internal/config/config.go index deb70e6..5e568cd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -8,7 +8,7 @@ import ( "go.alanpearce.eu/website/internal/log" "github.com/BurntSushi/toml" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) type Taxonomy struct { diff --git a/internal/config/cspgenerator.go b/internal/config/cspgenerator.go index 40eca01..9974819 100644 --- a/internal/config/cspgenerator.go +++ b/internal/config/cspgenerator.go @@ -9,7 +9,7 @@ import ( "github.com/crewjam/csp" "github.com/fatih/structtag" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) func GenerateCSP() error { diff --git a/internal/content/posts.go b/internal/content/posts.go index d56688d..000cd98 100644 --- a/internal/content/posts.go +++ b/internal/content/posts.go @@ -13,7 +13,7 @@ import ( "github.com/adrg/frontmatter" mapset "github.com/deckarep/golang-set/v2" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" fences "github.com/stefanfritsch/goldmark-fences" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" diff --git a/internal/listenfd/listenfd.go b/internal/listenfd/listenfd.go index a45637e..4e8c007 100644 --- a/internal/listenfd/listenfd.go +++ b/internal/listenfd/listenfd.go @@ -8,7 +8,7 @@ import ( "go.alanpearce.eu/website/internal/log" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) const fdStart = 3 diff --git a/internal/server/dev.go b/internal/server/dev.go index b984704..e83201a 100644 --- a/internal/server/dev.go +++ b/internal/server/dev.go @@ -13,7 +13,7 @@ import ( "go.alanpearce.eu/website/internal/log" "github.com/fsnotify/fsnotify" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) type FileWatcher struct { diff --git a/internal/server/server.go b/internal/server/server.go index c17c8d6..6f933ef 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -21,7 +21,7 @@ import ( "github.com/ardanlabs/conf/v3" "github.com/osdevisnot/sorvor/pkg/livereload" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) var ( diff --git a/internal/server/tls.go b/internal/server/tls.go index d48b5df..7bd4a1c 100644 --- a/internal/server/tls.go +++ b/internal/server/tls.go @@ -14,7 +14,7 @@ import ( "github.com/caddyserver/caddy/v2" "github.com/caddyserver/certmagic" certmagic_redis "github.com/pberkel/caddy-storage-redis" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) type redisConfig struct { diff --git a/internal/vcs/repository.go b/internal/vcs/repository.go index db212e9..42dc6f7 100644 --- a/internal/vcs/repository.go +++ b/internal/vcs/repository.go @@ -7,7 +7,7 @@ import ( "go.alanpearce.eu/website/internal/log" "github.com/go-git/go-git/v5" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) type Config struct { diff --git a/internal/website/filemap.go b/internal/website/filemap.go index 8e16d7e..21cd28a 100644 --- a/internal/website/filemap.go +++ b/internal/website/filemap.go @@ -12,7 +12,7 @@ import ( "go.alanpearce.eu/website/internal/log" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) type File struct { diff --git a/internal/website/mux.go b/internal/website/mux.go index 0c2a47d..c6992df 100644 --- a/internal/website/mux.go +++ b/internal/website/mux.go @@ -12,7 +12,7 @@ import ( "github.com/benpate/digit" "github.com/kevinpollet/nego" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) func CanonicalisePath(path string) (cPath string, differs bool) { -- cgit 1.4.1