fix(deps): update module github.com/Masterminds/sprig/v3 to v3.3.0 by Juneezee · Pull Request #184 · elastic/crd-ref-docs · GitHub
Skip to content

fix(deps): update module github.com/Masterminds/sprig/v3 to v3.3.0#184

Merged
thbkrkr merged 1 commit into
elastic:masterfrom
Juneezee:sprig-v3
Sep 29, 2025
Merged

fix(deps): update module github.com/Masterminds/sprig/v3 to v3.3.0#184
thbkrkr merged 1 commit into
elastic:masterfrom
Juneezee:sprig-v3

Conversation

@Juneezee

Copy link
Copy Markdown
Contributor

/cc @thbkrkr

The Renovate bot has missed the github.com/Masterminds/sprig dependency. The latest stable release is v3. v3.0.0 was released in October 2019 and introduced edge case behavior changes with semver.

Reference: https://github.com/Masterminds/sprig/releases/tag/v3.0.0

This PR also fixes an issue when running go get -u ./.... The Mergo dependency has changed its module path from github.com/imdario/mergo to dario.cat/mergo, which results in error messages like the following:

$ go get -u ./...
go: github.com/imdario/mergo@v1.0.2: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo
	trying github.com/imdario/mergo@v1.0.1
go: github.com/imdario/mergo@v1.0.1: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo
	trying github.com/imdario/mergo@v1.0.0
go: github.com/imdario/mergo@v1.0.0: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo
	trying github.com/imdario/mergo@v0.3.16
go: github.com/imdario/mergo@v1.0.2: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo
	trying github.com/imdario/mergo@v1.0.1
go: github.com/imdario/mergo@v1.0.1: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo
	trying github.com/imdario/mergo@v1.0.0
go: github.com/imdario/mergo@v1.0.0: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo
	restoring github.com/imdario/mergo@v0.3.16
go: upgraded github.com/huandu/xstrings v1.3.3 => v1.5.0
go: upgraded github.com/imdario/mergo v0.3.11 => v0.3.16
go: upgraded github.com/spf13/pflag v1.0.9 => v1.0.10
go: upgraded go.yaml.in/yaml/v2 v2.4.2 => v2.4.3
go: upgraded k8s.io/apiextensions-apiserver v0.34.0 => v0.34.1
go: upgraded k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 => v0.0.0-20250820121507-0af2bda4dd1d
go: upgraded sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 => v0.0.0-20250730193827-2d320260d730

go mod why shows that the old Mergo module is a dependency of github.com/Masterminds/sprig.

$ go mod why -m github.com/imdario/mergo
# github.com/imdario/mergo
github.com/elastic/crd-ref-docs/renderer
github.com/Masterminds/sprig
github.com/imdario/mergo

This has been fixed in v3.3.0.

Reference: https://github.com/Masterminds/sprig/releases/tag/v3.3.0

Spring v3 was released in October 2019. v3 introduced edge case behavior
changes with semver.

Reference: https://github.com/Masterminds/sprig/releases/tag/v3.0.0
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
@thbkrkr

thbkrkr commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

@thbkrkr thbkrkr merged commit 4257f09 into elastic:master Sep 29, 2025
2 checks passed
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.

2 participants