sprig icon indicating copy to clipboard operation
sprig copied to clipboard

Unable to load v3 version

Open benc-uk opened this issue 3 years ago • 3 comments

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 ?

benc-uk avatar Jan 07 '21 15:01 benc-uk

Ahh solved it

I had to use github.com/Masterminds/sprig/v3. It would be good if the readme was updated to reflect this.

benc-uk avatar Jan 07 '21 15:01 benc-uk

Thanks for pointing out the docs bug.

mattfarina avatar Jan 14 '21 18:01 mattfarina

Hi @mattfarina

Can the docs be updated? It took me a while to figure this out.

khushmeeet avatar Apr 22 '21 18:04 khushmeeet