Commit fe36012
committed
fix: prevent double-prefix when index ns overlaps manifest name
When the xpkg.lua descriptor has namespace='mcpplibs' but the
upstream tarball's mcpp.toml still uses the old full name
'mcpplibs.tinyhttps' (no namespace field), the lua-ns propagation
was injecting 'mcpplibs' into an already-prefixed name, producing
'mcpplibs.mcpplibs.tinyhttps'. Guard: skip injection when the
manifest name already starts with the lua namespace.1 parent 231b870 commit fe36012
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1189 | 1194 | | |
1190 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1191 | 1199 | | |
1192 | 1200 | | |
1193 | 1201 | | |
| |||
3290 | 3298 | | |
3291 | 3299 | | |
3292 | 3300 | | |
3293 | | - | |
| 3301 | + | |
3294 | 3302 | | |
3295 | 3303 | | |
3296 | 3304 | | |
| |||
0 commit comments