Closed Ben131-Go closed 1 year ago
Hey @Ben131-Go, thanks for opening. We can upgrade the minio dependencies, of course. I've opened a PR to do so here.
Please be aware that the examples aren't intended to be imported or have any sort of back-compatibility guarantees – they only function as working examples. Feel free to contribute an upgrade, too ❤️
Dependency line:
github.com/hack-pad/hackpadfs/examples --> github.com/minio/minio --> github.com/gomodule/redigo
github.com/minio/minio 9ca25bd --> github.com/gomodule/redigo v1.8.5
https://github.com/minio/minio/blob/9ca25bd48f7fec228f246ef5452465be009d4d7a/go.mod#L234
Background
Repo
github.com/minio/minio
at version9ca25bd
uses replace directive to pin dependencygithub.com/gomodule/redigo
to versionv1.8.5
.According to Go Modules wikis,
replace
directives in modules other than themain module
are ignored when building the main module. It means such replace usage in dependency's go.mod cannot be inherited when building main module. And it turns out thatgithub.com/hack-pad/hackpadfs/examples
indirectly relies ongomodule/redigo@v2.0.0
, which is different from the pinned versionminio/minio
needed.2. Add the same replace rule to your go.mod