Repository navigation
Commit 8c5b3df
fix: check where a builder app name imports from
The builder YAML upload check decided whether an app name shadowed an importable module by comparing it with built-in and standard library names, so an app named after an installed package passed and its references loaded that package's code. The check now asks the import system where the name would load from, without running any module code, and refuses the references unless that is inside the app's own directory.
Co-authored-by: George Weale <[email protected]>
PiperOrigin-RevId: 9919765941 parent 731ea30 commit 8c5b3df
2 files changed
Lines changed: 55 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
262 | 270 | | |
263 | 271 | | |
264 | 272 | | |
265 | 273 | | |
266 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
267 | 280 | | |
268 | 281 | | |
269 | 282 | | |
270 | 283 | | |
271 | 284 | | |
272 | 285 | | |
| 286 | + | |
273 | 287 | | |
274 | 288 | | |
275 | 289 | | |
| |||
287 | 301 | | |
288 | 302 | | |
289 | 303 | | |
290 | | - | |
| 304 | + | |
291 | 305 | | |
292 | 306 | | |
293 | 307 | | |
| |||
566 | 580 | | |
567 | 581 | | |
568 | 582 | | |
| 583 | + | |
569 | 584 | | |
570 | 585 | | |
571 | 586 | | |
| |||
585 | 600 | | |
586 | 601 | | |
587 | 602 | | |
| 603 | + | |
588 | 604 | | |
589 | 605 | | |
590 | 606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
| 784 | + | |
| 785 | + | |
784 | 786 | | |
785 | 787 | | |
786 | 788 | | |
| |||
3940 | 3942 | | |
3941 | 3943 | | |
3942 | 3944 | | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
3943 | 3954 | | |
3944 | | - | |
| 3955 | + | |
3945 | 3956 | | |
3946 | 3957 | | |
3947 | 3958 | | |
3948 | 3959 | | |
3949 | | - | |
3950 | | - | |
| 3960 | + | |
| 3961 | + | |
3951 | 3962 | | |
3952 | 3963 | | |
3953 | 3964 | | |
3954 | 3965 | | |
3955 | 3966 | | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
3956 | 3982 | | |
3957 | 3983 | | |
3958 | 3984 | | |
| |||
0 commit comments