Commit 282de8a
ci(release): fail the PSGallery check on a query error instead of assuming not-published
Now that Publish is gated only on this check (recovery-gap fix #33), a
Find-Module -ErrorAction SilentlyContinue returning $null was treated as
'not on gallery' for BOTH a genuine miss and a transient query failure — so a
network/PSGallery hiccup could trigger a blind publish attempt. Capture
-ErrorVariable: publish only on a clean miss (Find-Module records no error for a
genuine not-found, verified for new-version and never-published cases); on a
recorded error, throw so the run is visibly retryable.
Surfaced by CodeRabbit/Copilot during the YouTubeMusicPS rollout review.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 090de78 commit 282de8a
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
0 commit comments