sprig
sprig copied to clipboard
Unable to load v3 version
I'm trying to use the v3 version.
When I add import "github.com/Masterminds/sprig"
I end up receiving the v2 version in my go.mod and package directory
If I try to manually run go get github.com/Masterminds/[email protected]
I get an error
go get github.com/Masterminds/[email protected]:
github.com/Masterminds/[email protected]: invalid version:
module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v3
How can I use version 3 ?
Ahh solved it
I had to use github.com/Masterminds/sprig/v3
. It would be good if the readme was updated to reflect this.
Thanks for pointing out the docs bug.
Hi @mattfarina
Can the docs be updated? It took me a while to figure this out.