-
Notifications
You must be signed in to change notification settings - Fork 633
Commit ff9494c
Use the module cache to find snapshot CRDs
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 1 parent b86f239 commit ff9494c
1 file changed
+8
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 | + | ||
155 | 156 |
| |
156 | 157 |
| |
157 | - | ||
158 | + | ||
158 | 159 |
| |
159 | 160 |
| |
160 | - | ||
161 | + | ||
161 | 162 |
| |
162 | - | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
163 | 168 |
| |
164 | 169 |
| |
165 | 170 |
| |
|
0 commit comments