diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-07-30 15:47:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-07-31 16:44:06 +0200 |
commit | e67886c038dc79755c14ec77bbeff6605953f9ef (patch) | |
tree | 6b36585a55796b5a29d41764175e4d6d82a0d206 /source | |
parent | d5eda13cb2e57998210b66e080dc96e95b38e5f0 (diff) | |
download | hugo-e67886c038dc79755c14ec77bbeff6605953f9ef.tar.gz hugo-e67886c038dc79755c14ec77bbeff6605953f9ef.zip |
Consolidate all hashing to the common/hashing package
And remove now unsued hashing funcs.
Diffstat (limited to 'source')
-rw-r--r-- | source/fileInfo.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go index 3a95a0593..bece86fa9 100644 --- a/source/fileInfo.go +++ b/source/fileInfo.go @@ -19,6 +19,7 @@ import ( "time" "github.com/bep/gitmap" + "github.com/gohugoio/hugo/common/hashing" "github.com/gohugoio/hugo/common/hugo" "github.com/gohugoio/hugo/common/paths" "github.com/gohugoio/hugo/media" @@ -26,8 +27,6 @@ import ( "github.com/gohugoio/hugo/common/hugio" "github.com/gohugoio/hugo/hugofs" - - "github.com/gohugoio/hugo/helpers" ) // File describes a source file. @@ -125,7 +124,7 @@ func (fi *File) IsZero() bool { // in some cases that is slightly expensive to construct. func (fi *File) init() { fi.lazyInit.Do(func() { - fi.uniqueID = helpers.MD5String(filepath.ToSlash(fi.Path())) + fi.uniqueID = hashing.MD5FromStringHexEncoded(filepath.ToSlash(fi.Path())) }) } |