Commit 2f59b4b
Fail on ambiguous account selection in non-interactive mode
Other publish providers fail when --no-prompt is set and multiple
accounts exist, via the shared resolveAccount logic. Connect Cloud
bypasses that shared path for environment token account resolution,
so it needs its own guard: throw an error when multiple publishable
accounts exist without POSIT_CONNECT_CLOUD_ACCOUNT_ID in
non-interactive mode, instead of silently picking the first.
Also add Test 6b to the manual testing protocol covering this case.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bea3045 commit 2f59b4b
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- src/publish/posit-connect-cloud
- tests/docs/manual/publish-connect-cloud
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
373 | 379 | | |
374 | 380 | | |
375 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
217 | 232 | | |
218 | 233 | | |
219 | 234 | | |
| |||
340 | 355 | | |
341 | 356 | | |
342 | 357 | | |
| 358 | + | |
343 | 359 | | |
344 | 360 | | |
345 | 361 | | |
| |||
0 commit comments