Bare go mod init
will pull the wrong deps
#997
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
We recommend running a bare
go mod init
if your project doesn't have an easily-discoverable module path. When this happens, we won't scaffold out a pinned go modules file, which meansgo mod tidy
will try to pull the latest of everything. Since the k8s deps don't do proper versioning, this means we get all sorts of issues with deps.We should probably at least recommend people also run
go get sigs.k8s.io/controller-runtime@vX.Y.Z
. Probably, instead though, if there's an existing go.mod file, we should use thego mod
command (probably with the-json
flag) to check if CR is already present, and, if not, usego get
to add it./kind bug
The text was updated successfully, but these errors were encountered: