Commit 793c89b
committed
Also check the pack from a clean output directory
The loader check added alongside the packaging change runs on the nupkg CI
publishes, and CI builds before it packs. So `$(OutputPath)` is already
populated by then, and a return to gathering the closure with a wildcard over
that directory would still produce a complete package and still pass. Measured:
with the wildcard restored, packing the built tree yields all ten assemblies
and the check passes, while packing into an empty output directory yields two
and the plugin fails to load. The check could not catch the regression it
exists to catch.
Pack again into an output directory that is guaranteed empty, and run the same
loader check on that package. Relocating `$(OutputPath)` rather than reordering
the CI steps means the check keeps testing the cold condition however the job
is rearranged later.
Verified by mutation: with the wildcard restored, the new check fails with the
same `ReflectionTypeLoadException` a consumer would see, while the check on the
published artefact still passes - so the two are testing different things and
both are worth having.
Found by Codex.1 parent 2fcb08a commit 793c89b
2 files changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments