diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-07-30 15:47:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-07-31 16:44:06 +0200 |
commit | e67886c038dc79755c14ec77bbeff6605953f9ef (patch) | |
tree | 6b36585a55796b5a29d41764175e4d6d82a0d206 /config | |
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 'config')
-rw-r--r-- | config/namespace.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/namespace.go b/config/namespace.go index b518c6c01..46b5014c3 100644 --- a/config/namespace.go +++ b/config/namespace.go @@ -16,13 +16,13 @@ package config import ( "encoding/json" - "github.com/gohugoio/hugo/identity" + "github.com/gohugoio/hugo/common/hashing" ) func DecodeNamespace[S, C any](configSource any, buildConfig func(any) (C, any, error)) (*ConfigNamespace[S, C], error) { // Calculate the hash of the input (not including any defaults applied later). // This allows us to introduce new config options without breaking the hash. - h := identity.HashString(configSource) + h := hashing.HashString(configSource) // Build the config c, ext, err := buildConfig(configSource) |