Commit e624b6d
committed
(go/v4): Simplify init directory validation to only block PROJECT fil
Remove overly restrictive directory validation that was blocking legitimate
files like mise.toml and other configuration files. The previous logic
attempted to allow only specific file types but had inverted logic that
blocked most files unnecessarily.
At this stage, we don't have a maintainable way to accurately predict all
possible file conflicts. The only file that definitively conflicts with
scaffolding is the PROJECT file, which kubebuilder generates.
This allows users to run kubebuilder init in directories with legitimate
configuration files (mise.toml, .envrc, .tool-versions, etc.) without
encountering false validation errors.1 parent 78fbec7 commit e624b6d
1 file changed
+8
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
162 | | - | |
163 | | - | |
| 161 | + | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
170 | | - | |
| 168 | + | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
175 | | - | |
176 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
177 | 176 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 177 | + | |
| 178 | + | |
209 | 179 | | |
210 | 180 | | |
211 | 181 | | |
| |||
0 commit comments