From f2ff77f3ac3d2f347cc81f7aabf15d5b55cf2e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 8 Apr 2016 21:11:44 +0200 Subject: [PATCH] Make Hugo build without Mercurial By creating a fork of the Bitbucket inflect repo. It hasn't changed since 2013, so it must be considered pretty stable. Fixes #2062 --- hugolib/site.go | 2 +- hugolib/site_test.go | 2 +- tpl/template_funcs.go | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hugolib/site.go b/hugolib/site.go index 5deb98bd5..f7615170c 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -31,7 +31,7 @@ import ( "path" - "bitbucket.org/pkg/inflect" + "github.com/bep/inflect" "github.com/spf13/afero" "github.com/spf13/cast" bp "github.com/spf13/hugo/bufferpool" diff --git a/hugolib/site_test.go b/hugolib/site_test.go index 8cbe35d44..9f0abc98c 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "bitbucket.org/pkg/inflect" + "github.com/bep/inflect" "github.com/spf13/hugo/helpers" "github.com/spf13/hugo/hugofs" diff --git a/tpl/template_funcs.go b/tpl/template_funcs.go index c3e807176..9131cc1ec 100644 --- a/tpl/template_funcs.go +++ b/tpl/template_funcs.go @@ -24,8 +24,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/spf13/afero" - "github.com/spf13/hugo/hugofs" "html" "html/template" "math/rand" @@ -39,7 +37,10 @@ import ( "time" "unicode/utf8" - "bitbucket.org/pkg/inflect" + "github.com/spf13/afero" + "github.com/spf13/hugo/hugofs" + + "github.com/bep/inflect" "github.com/spf13/cast" "github.com/spf13/hugo/helpers"