Repository navigation
Commit e75c274
* Start refactor for #594
Assisted-by: Claude Code:claude-opus-5-5
* Wire vendored nuget.config via formats::nuget
Vendored NuGet now reads the source keys and finds the
<packageSources>, <packageSourceMapping> and <configuration> anchors
through formats::nuget::parse_config, the reader that hosted,
upstream restore and VEX already use. The private substring scanner
(blank_comments, parse_config_source_keys, attr_value,
self_closing_package_sources, insert_at_line) is deleted.
User impact:
- A close tag written with whitespace (</packageSources >) is now the
section that gets extended; vendor used to append a second section
NuGet ignores, so restore failed NU1100/NU1403 (#685).
- An empty <packageSourceMapping /> is expanded in place instead of
left beside a second mapping section.
- A section opened and closed on one line receives the source inside
it, not before its open tag.
- Catch-all keys are written XML-encoded, so a key with & or a quote
keeps its identity.
- Malformed XML or a repeated section is refused with "malformed XML
or a repeated section; not wired" instead of being spliced at the
first substring match, as hosted already does.
Output bytes for well-formed configs are unchanged.
Fixes #685
Refs #594
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 278d93e commit e75c274
2 files changed
Lines changed: 335 additions & 208 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
294 | 308 | | |
295 | 309 | | |
296 | 310 | | |
| |||
0 commit comments