Skip to content

Conversation

@chentex
Copy link

@chentex chentex commented Apr 8, 2025

Update Crypto version to mitigate GO-2025-3487

Upgrades golang version to 1.23

Supersede #427

Upgrades golang version

Signed-off-by: Vicente Zepeda Mas <[email protected]>
@chentex
Copy link
Author

chentex commented Apr 8, 2025

Local test results

$ make test
==> Running tests
GO111MODULE=on go test -v
=== RUN   TestSha512Sum
--- PASS: TestSha512Sum (0.00s)
=== RUN   TestSha256Sum
--- PASS: TestSha256Sum (0.00s)
=== RUN   TestSha1Sum
--- PASS: TestSha1Sum (0.00s)
=== RUN   TestAdler32Sum
--- PASS: TestAdler32Sum (0.00s)
=== RUN   TestBcrypt
--- PASS: TestBcrypt (0.09s)
=== RUN   TestHtpasswd
--- PASS: TestHtpasswd (0.28s)
=== RUN   TestDerivePassword
--- PASS: TestDerivePassword (0.74s)
=== RUN   TestGenPrivateKey
--- PASS: TestGenPrivateKey (4.90s)
=== RUN   TestRandBytes
--- PASS: TestRandBytes (0.00s)
=== RUN   TestUUIDGeneration
--- PASS: TestUUIDGeneration (0.00s)
=== RUN   TestBuildCustomCert
--- PASS: TestBuildCustomCert (0.04s)
=== RUN   TestGenCA
--- PASS: TestGenCA (0.05s)
=== RUN   TestGenCAWithKey
=== RUN   TestGenCAWithKey/ecdsa
=== RUN   TestGenCAWithKey/ed25519
--- PASS: TestGenCAWithKey (0.00s)
    --- PASS: TestGenCAWithKey/ecdsa (0.00s)
    --- PASS: TestGenCAWithKey/ed25519 (0.00s)
=== RUN   TestGenSelfSignedCert
--- PASS: TestGenSelfSignedCert (0.05s)
=== RUN   TestGenSelfSignedCertWithKey
=== RUN   TestGenSelfSignedCertWithKey/ecdsa
=== RUN   TestGenSelfSignedCertWithKey/ed25519
--- PASS: TestGenSelfSignedCertWithKey (0.00s)
    --- PASS: TestGenSelfSignedCertWithKey/ecdsa (0.00s)
    --- PASS: TestGenSelfSignedCertWithKey/ed25519 (0.00s)
=== RUN   TestGenSignedCert
--- PASS: TestGenSignedCert (0.26s)
=== RUN   TestGenSignedCertWithKey
=== RUN   TestGenSignedCertWithKey/ecdsa-ecdsa
=== RUN   TestGenSignedCertWithKey/ecdsa-ed25519
=== RUN   TestGenSignedCertWithKey/ed25519-ecdsa
=== RUN   TestGenSignedCertWithKey/ed25519-ed25519
--- PASS: TestGenSignedCertWithKey (0.00s)
    --- PASS: TestGenSignedCertWithKey/ecdsa-ecdsa (0.00s)
    --- PASS: TestGenSignedCertWithKey/ecdsa-ed25519 (0.00s)
    --- PASS: TestGenSignedCertWithKey/ed25519-ecdsa (0.00s)
    --- PASS: TestGenSignedCertWithKey/ed25519-ed25519 (0.00s)
=== RUN   TestEncryptDecryptAES
--- PASS: TestEncryptDecryptAES (0.00s)
=== RUN   TestHtmlDate
    date_test.go:9: 
--- SKIP: TestHtmlDate (0.00s)
=== RUN   TestAgo
--- PASS: TestAgo (0.00s)
=== RUN   TestToDate
--- PASS: TestToDate (0.00s)
=== RUN   TestUnixEpoch
--- PASS: TestUnixEpoch (0.00s)
=== RUN   TestDateInZone
--- PASS: TestDateInZone (0.01s)
=== RUN   TestDuration
--- PASS: TestDuration (0.00s)
=== RUN   TestDurationRound
--- PASS: TestDurationRound (0.00s)
=== RUN   TestDefault
--- PASS: TestDefault (0.00s)
=== RUN   TestEmpty
--- PASS: TestEmpty (0.00s)
=== RUN   TestCoalesce
--- PASS: TestCoalesce (0.00s)
=== RUN   TestAll
--- PASS: TestAll (0.00s)
=== RUN   TestAny
--- PASS: TestAny (0.00s)
=== RUN   TestFromJson
--- PASS: TestFromJson (0.00s)
=== RUN   TestToJson
--- PASS: TestToJson (0.00s)
=== RUN   TestToPrettyJson
--- PASS: TestToPrettyJson (0.00s)
=== RUN   TestToRawJson
--- PASS: TestToRawJson (0.00s)
=== RUN   TestTernary
--- PASS: TestTernary (0.00s)
=== RUN   TestDict
--- PASS: TestDict (0.00s)
=== RUN   TestUnset
--- PASS: TestUnset (0.00s)
=== RUN   TestHasKey
--- PASS: TestHasKey (0.00s)
=== RUN   TestPluck
--- PASS: TestPluck (0.00s)
=== RUN   TestKeys
--- PASS: TestKeys (0.00s)
=== RUN   TestPick
--- PASS: TestPick (0.00s)
=== RUN   TestOmit
--- PASS: TestOmit (0.00s)
=== RUN   TestGet
--- PASS: TestGet (0.00s)
=== RUN   TestSet
--- PASS: TestSet (0.00s)
=== RUN   TestMerge
--- PASS: TestMerge (0.00s)
=== RUN   TestMergeOverwrite
--- PASS: TestMergeOverwrite (0.00s)
=== RUN   TestValues
--- PASS: TestValues (0.00s)
=== RUN   TestDeepCopy
--- PASS: TestDeepCopy (0.00s)
=== RUN   TestMustDeepCopy
--- PASS: TestMustDeepCopy (0.00s)
=== RUN   TestDig
--- PASS: TestDig (0.00s)
=== RUN   TestFail
--- PASS: TestFail (0.00s)
=== RUN   TestOsBase
--- PASS: TestOsBase (0.00s)
=== RUN   TestOsDir
--- PASS: TestOsDir (0.00s)
=== RUN   TestOsIsAbs
--- PASS: TestOsIsAbs (0.00s)
=== RUN   TestOsClean
--- PASS: TestOsClean (0.00s)
=== RUN   TestOsExt
--- PASS: TestOsExt (0.00s)
=== RUN   TestEnv
--- PASS: TestEnv (0.00s)
=== RUN   TestExpandEnv
--- PASS: TestExpandEnv (0.00s)
=== RUN   TestBase
--- PASS: TestBase (0.00s)
=== RUN   TestDir
--- PASS: TestDir (0.00s)
=== RUN   TestIsAbs
--- PASS: TestIsAbs (0.00s)
=== RUN   TestClean
--- PASS: TestClean (0.00s)
=== RUN   TestExt
--- PASS: TestExt (0.00s)
=== RUN   TestSnakeCase
--- PASS: TestSnakeCase (0.00s)
=== RUN   TestCamelCase
--- PASS: TestCamelCase (0.00s)
=== RUN   TestKebabCase
--- PASS: TestKebabCase (0.00s)
=== RUN   TestShuffle
--- PASS: TestShuffle (0.00s)
=== RUN   TestRegex
--- PASS: TestRegex (0.00s)
=== RUN   TestIssue188
--- PASS: TestIssue188 (0.00s)
=== RUN   TestTuple
--- PASS: TestTuple (0.00s)
=== RUN   TestList
--- PASS: TestList (0.00s)
=== RUN   TestPush
--- PASS: TestPush (0.00s)
=== RUN   TestMustPush
--- PASS: TestMustPush (0.00s)
=== RUN   TestChunk
--- PASS: TestChunk (0.00s)
=== RUN   TestMustChunk
--- PASS: TestMustChunk (0.00s)
=== RUN   TestPrepend
--- PASS: TestPrepend (0.00s)
=== RUN   TestMustPrepend
--- PASS: TestMustPrepend (0.00s)
=== RUN   TestFirst
--- PASS: TestFirst (0.00s)
=== RUN   TestMustFirst
--- PASS: TestMustFirst (0.00s)
=== RUN   TestLast
--- PASS: TestLast (0.00s)
=== RUN   TestMustLast
--- PASS: TestMustLast (0.00s)
=== RUN   TestInitial
--- PASS: TestInitial (0.00s)
=== RUN   TestMustInitial
--- PASS: TestMustInitial (0.00s)
=== RUN   TestRest
--- PASS: TestRest (0.00s)
=== RUN   TestMustRest
--- PASS: TestMustRest (0.00s)
=== RUN   TestReverse
--- PASS: TestReverse (0.00s)
=== RUN   TestMustReverse
--- PASS: TestMustReverse (0.00s)
=== RUN   TestCompact
--- PASS: TestCompact (0.00s)
=== RUN   TestMustCompact
--- PASS: TestMustCompact (0.00s)
=== RUN   TestUniq
--- PASS: TestUniq (0.00s)
=== RUN   TestMustUniq
--- PASS: TestMustUniq (0.00s)
=== RUN   TestWithout
--- PASS: TestWithout (0.00s)
=== RUN   TestMustWithout
--- PASS: TestMustWithout (0.00s)
=== RUN   TestHas
--- PASS: TestHas (0.00s)
=== RUN   TestMustHas
--- PASS: TestMustHas (0.00s)
=== RUN   TestSlice
--- PASS: TestSlice (0.00s)
=== RUN   TestMustSlice
--- PASS: TestMustSlice (0.00s)
=== RUN   TestConcat
--- PASS: TestConcat (0.00s)
=== RUN   TestGetHostByName
--- PASS: TestGetHostByName (0.03s)
=== RUN   TestUntil
--- PASS: TestUntil (0.00s)
=== RUN   TestUntilStep
--- PASS: TestUntilStep (0.00s)
=== RUN   TestBiggest
--- PASS: TestBiggest (0.00s)
=== RUN   TestMaxf
--- PASS: TestMaxf (0.00s)
=== RUN   TestMin
--- PASS: TestMin (0.00s)
=== RUN   TestMinf
--- PASS: TestMinf (0.00s)
=== RUN   TestToFloat64
--- PASS: TestToFloat64 (0.00s)
=== RUN   TestToInt64
--- PASS: TestToInt64 (0.00s)
=== RUN   TestToInt
--- PASS: TestToInt (0.00s)
=== RUN   TestToDecimal
--- PASS: TestToDecimal (0.00s)
=== RUN   TestAdd1
--- PASS: TestAdd1 (0.00s)
=== RUN   TestAdd1f
--- PASS: TestAdd1f (0.00s)
=== RUN   TestAdd
--- PASS: TestAdd (0.00s)
=== RUN   TestAddf
--- PASS: TestAddf (0.00s)
=== RUN   TestDiv
--- PASS: TestDiv (0.00s)
=== RUN   TestDivf
--- PASS: TestDivf (0.00s)
=== RUN   TestMul
--- PASS: TestMul (0.00s)
=== RUN   TestMulf
--- PASS: TestMulf (0.00s)
=== RUN   TestSub
--- PASS: TestSub (0.00s)
=== RUN   TestSubf
--- PASS: TestSubf (0.00s)
=== RUN   TestCeil
--- PASS: TestCeil (0.00s)
=== RUN   TestFloor
--- PASS: TestFloor (0.00s)
=== RUN   TestRound
--- PASS: TestRound (0.00s)
=== RUN   TestRandomInt
--- PASS: TestRandomInt (0.00s)
=== RUN   TestSeq
--- PASS: TestSeq (0.00s)
=== RUN   TestTypeOf
--- PASS: TestTypeOf (0.00s)
=== RUN   TestKindOf
--- PASS: TestKindOf (0.00s)
=== RUN   TestTypeIs
--- PASS: TestTypeIs (0.00s)
=== RUN   TestTypeIsLike
--- PASS: TestTypeIsLike (0.00s)
=== RUN   TestKindIs
--- PASS: TestKindIs (0.00s)
=== RUN   TestRegexMatch
--- PASS: TestRegexMatch (0.00s)
=== RUN   TestMustRegexMatch
--- PASS: TestMustRegexMatch (0.00s)
=== RUN   TestRegexFindAll
--- PASS: TestRegexFindAll (0.00s)
=== RUN   TestMustRegexFindAll
--- PASS: TestMustRegexFindAll (0.00s)
=== RUN   TestRegexFindl
--- PASS: TestRegexFindl (0.00s)
=== RUN   TestMustRegexFindl
--- PASS: TestMustRegexFindl (0.00s)
=== RUN   TestRegexReplaceAll
--- PASS: TestRegexReplaceAll (0.00s)
=== RUN   TestMustRegexReplaceAll
--- PASS: TestMustRegexReplaceAll (0.00s)
=== RUN   TestRegexReplaceAllLiteral
--- PASS: TestRegexReplaceAllLiteral (0.00s)
=== RUN   TestMustRegexReplaceAllLiteral
--- PASS: TestMustRegexReplaceAllLiteral (0.00s)
=== RUN   TestRegexSplit
--- PASS: TestRegexSplit (0.00s)
=== RUN   TestMustRegexSplit
--- PASS: TestMustRegexSplit (0.00s)
=== RUN   TestRegexQuoteMeta
--- PASS: TestRegexQuoteMeta (0.00s)
=== RUN   TestSemverCompare
--- PASS: TestSemverCompare (0.00s)
=== RUN   TestSemver
--- PASS: TestSemver (0.00s)
=== RUN   TestSubstr
--- PASS: TestSubstr (0.00s)
=== RUN   TestSubstr_shorterString
--- PASS: TestSubstr_shorterString (0.00s)
=== RUN   TestTrunc
--- PASS: TestTrunc (0.00s)
=== RUN   TestQuote
--- PASS: TestQuote (0.00s)
=== RUN   TestSquote
--- PASS: TestSquote (0.00s)
=== RUN   TestContains
--- PASS: TestContains (0.00s)
=== RUN   TestTrim
--- PASS: TestTrim (0.00s)
=== RUN   TestSplit
--- PASS: TestSplit (0.00s)
=== RUN   TestSplitn
--- PASS: TestSplitn (0.00s)
=== RUN   TestToString
--- PASS: TestToString (0.00s)
=== RUN   TestToStrings
--- PASS: TestToStrings (0.00s)
=== RUN   TestJoin
--- PASS: TestJoin (0.00s)
=== RUN   TestSortAlpha
--- PASS: TestSortAlpha (0.00s)
=== RUN   TestBase64EncodeDecode
--- PASS: TestBase64EncodeDecode (0.00s)
=== RUN   TestBase32EncodeDecode
--- PASS: TestBase32EncodeDecode (0.00s)
=== RUN   TestGoutils
    strings_test.go:203: {{abbrevboth 5 10 "1234 5678 9123"}}
    strings_test.go:203: {{nospace "h e l l o "}}
    strings_test.go:203: {{untitle "First Try"}}
    strings_test.go:203: {{initials "First Try"}}
    strings_test.go:203: {{wrap 5 "Hello World"}}
    strings_test.go:203: {{wrapWith 5 "\t" "Hello World"}}
    strings_test.go:203: {{abbrev 5 "hello world"}}
--- PASS: TestGoutils (0.00s)
=== RUN   TestRandomString
--- PASS: TestRandomString (0.00s)
=== RUN   TestCat
--- PASS: TestCat (0.00s)
=== RUN   TestIndent
--- PASS: TestIndent (0.00s)
=== RUN   TestNindent
--- PASS: TestNindent (0.00s)
=== RUN   TestReplace
--- PASS: TestReplace (0.00s)
=== RUN   TestPlural
--- PASS: TestPlural (0.00s)
=== RUN   TestUrlParse
--- PASS: TestUrlParse (0.00s)
=== RUN   TestUrlJoin
--- PASS: TestUrlJoin (0.00s)
=== RUN   Example
--- PASS: Example (0.00s)
PASS
ok  	github.com/Masterminds/sprig/v3	6.487s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant