chore(ci): use http delete instead of curl DELETE #37

Merged
David merged 1 commit from chore/use-http-delete into main 2026-05-15 03:25:19 +02:00
Owner

Summary

Replace the best-effort curl --request DELETE calls in the Generic Package publish steps (binary + .sha256 sidecar) with Nushell's native http delete --full --allow-errors. The new form checks the response status: 204 (deleted) and 404 (nothing to delete) are tolerated, anything else aborts the workflow with a clear message. This surfaces real registry-side errors (auth failure, rate limiting, etc.) that the curl form silently swallowed because there was no --fail flag and no exit-code check. Applied to both build-linux.yml and build-windows.yml.

Test plan

  • Next push that triggers build-linux.yml and build-windows.yml should still see "DELETE returned 204" (or 404 on the very first publish of a new tag) for both the binary and the sidecar, and the subsequent PUTs should succeed.
## Summary Replace the best-effort `curl --request DELETE` calls in the Generic Package publish steps (binary + `.sha256` sidecar) with Nushell's native `http delete --full --allow-errors`. The new form checks the response status: 204 (deleted) and 404 (nothing to delete) are tolerated, anything else aborts the workflow with a clear message. This surfaces real registry-side errors (auth failure, rate limiting, etc.) that the curl form silently swallowed because there was no `--fail` flag and no exit-code check. Applied to both `build-linux.yml` and `build-windows.yml`. ## Test plan - [ ] Next push that triggers `build-linux.yml` and `build-windows.yml` should still see "DELETE returned 204" (or 404 on the very first publish of a new tag) for both the binary and the sidecar, and the subsequent PUTs should succeed.
chore(ci): use http delete instead of curl DELETE
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 16s
Create release / Create release from merged PR (pull_request) Has been skipped
85ba19e8a9
Replaces the bare `curl --request DELETE` (binary + .sha256 sidecar) with Nushell's `http delete --full --allow-errors`. The new form checks the HTTP status (204 expected, 404 tolerated) and aborts the workflow on any other code, surfacing registry-side issues that curl was silently swallowing. Applied to both build-linux.yml and build-windows.yml.
David merged commit 01a1b3f7c7 into main 2026-05-15 03:25:19 +02:00
David deleted branch chore/use-http-delete 2026-05-15 03:25:19 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pandoras-box/youtrack-cli!37
No description provided.