Closed troian closed 4 years ago
Wutt, looking into it 👍
I've been fighting with go modules quite a bit lately but nothing with go-pluralize.
When I run go mod tidy it just sets go-pluralize 0.1.4 there. I don't know where it comes from.
https://pkg.go.dev/github.com/gertd/go-pluralize@v0.1.4?tab=doc
Go mod seems to keep a cache to this website which is really really annoying. It also keeps references to an old version to this library so I decided to move all my files to the root instead of folders to fix that.
So if a library maintainer add a library 1 time it will be cached forever and we can't control the website.
I think that the repository history has been rewritten or something like that based on the https://github.com/gertd/go-pluralize/issues/8 issue.
@gertd Maybe the library should be changed to 0.1.4 to fix this issue because the pgk.go.dev website will keep this version forever.
I did have the same problem with https://pkg.go.dev/mod/github.com/web-ridge/gqlgen-sqlboiler/boiler@v0.0.0-20200424102639-0c95b5d41c2c. I can not refresh the website or something it's really really annoying.
I've posted a question about this on Stackoverflow too since I have a lot of issues with gomodules: https://stackoverflow.com/questions/61666341/disable-go-modules-caching-via-pkg-go-dev.
@troian Going to v2.0.2 should fix this issue!
Cheers
Let me know if I can close this issue!
With fork it is good now
It looks like there is a typo in
go.mod
asv0.1.2
is the latest published version of github.com/gertd/go-pluralize