You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without an explicit "-mod" flag, "golang.org/x/tools/go/packages"
returns package information from the "vendor" directory, when it exists.
The "vendor" directory only contains what Go needs to compile packages
for the main module. It does *not* contain Kubernetes YAML files.
The "-mod=readonly" build flag returns information about packages in the
module cache. These directories *do* contain Kubernetes YAML files.
Co-authored-by: Benjamin Blattberg <ben.blattberg@crunchydata.com>
See: https://go.dev/ref/mod#build-commands
0 commit comments