Commit 97a1933
refactor: replace nuget update source with user-level NuGet.Config write
Instead of mutating the project-level nuget.config with backup/restore,
write a credentials-only XML to /root/.nuget/NuGet/NuGet.Config inside
the BuildKit secret mount. NuGet merges packageSourceCredentials from
the user-level config independently of <clear /> in packageSources, so
packageSourceMapping and source definitions in nuget.config are fully
preserved. The credentials file is removed at end of the same RUN layer.
Also fixes:
- ! -f → ! -s (fail-fast if secret is empty, not just missing)
- No more backup/restore dance or nuget.config mutation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8b22bdb commit 97a1933
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
0 commit comments