]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
deps: Replace github.com/mitchellh/hashstructure/v2 with github.com/gohugoio/hashstru...
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 Jul 2024 10:13:28 +0000 (12:13 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 Jul 2024 14:44:06 +0000 (16:44 +0200)
The old repo is archived and no longer maintained.

See #11644

go.mod
go.sum
identity/identityhash.go

diff --git a/go.mod b/go.mod
index 4467afd594f2b82eb479d60cd8a09f6d12c5f741..b2733ed27be0ae33bcd9f6ed3cdda8290c5387f9 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -37,6 +37,7 @@ require (
        github.com/gobuffalo/flect v1.0.2
        github.com/gobwas/glob v0.2.3
        github.com/gohugoio/go-i18n/v2 v2.1.3-0.20230805085216-e63c13218d0e
+       github.com/gohugoio/hashstructure v0.1.0
        github.com/gohugoio/httpcache v0.7.0
        github.com/gohugoio/hugo-goldmark-extensions/extras v0.2.0
        github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.2.0
@@ -53,7 +54,6 @@ require (
        github.com/makeworld-the-better-one/dither/v2 v2.4.0
        github.com/marekm4/color-extractor v1.2.1
        github.com/mattn/go-isatty v0.0.20
-       github.com/mitchellh/hashstructure/v2 v2.0.2
        github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c
        github.com/muesli/smartcrop v0.3.0
        github.com/niklasfasching/go-org v1.7.0
diff --git a/go.sum b/go.sum
index 2bcb46b91d9249f3f86928dedff10a6a335570e9..3c5ae666818fc5f7e10ce1ae202253f860df1b90 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -226,6 +226,8 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
 github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
 github.com/gohugoio/go-i18n/v2 v2.1.3-0.20230805085216-e63c13218d0e h1:QArsSubW7eDh8APMXkByjQWvuljwPGAGQpJEFn0F0wY=
 github.com/gohugoio/go-i18n/v2 v2.1.3-0.20230805085216-e63c13218d0e/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
+github.com/gohugoio/hashstructure v0.1.0 h1:kBSTMLMyTXbrJVAxaKI+wv30MMJJxn9Q8kfQtJaZ400=
+github.com/gohugoio/hashstructure v0.1.0/go.mod h1:8ohPTAfQLTs2WdzB6k9etmQYclDUeNsIHGPAFejbsEA=
 github.com/gohugoio/httpcache v0.7.0 h1:ukPnn04Rgvx48JIinZvZetBfHaWE7I01JR2Q2RrQ3Vs=
 github.com/gohugoio/httpcache v0.7.0/go.mod h1:fMlPrdY/vVJhAriLZnrF5QpN3BNAcoBClgAyQd+lGFI=
 github.com/gohugoio/hugo-goldmark-extensions/extras v0.2.0 h1:MNdY6hYCTQEekY0oAfsxWZU1CDt6iH+tMLgyMJQh/sg=
@@ -377,8 +379,6 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
 github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
 github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
 github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
-github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4=
-github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE=
 github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c h1:cqn374mizHuIWj+OSJCajGr/phAmuMug9qIX3l9CflE=
 github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
index 7d3b83a0dba64c4b33758f11774461565cc892d2..669a00a49d1311c11a5c150f50098515e80e4bce 100644 (file)
@@ -18,7 +18,7 @@ import (
        "sync"
 
        "github.com/cespare/xxhash/v2"
-       "github.com/mitchellh/hashstructure/v2"
+       "github.com/gohugoio/hashstructure"
 )
 
 // HashString returns a hash from the given elements.
@@ -66,7 +66,7 @@ func HashUint64(vs ...any) uint64 {
        hashOpts := getHashOpts()
        defer putHashOpts(hashOpts)
 
-       hash, err := hashstructure.Hash(o, hashstructure.FormatV2, hashOpts)
+       hash, err := hashstructure.Hash(o, hashOpts)
        if err != nil {
                panic(err)
        }