registry/internal/service
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Radoslav Dimitrov 068a97a2f8
fix: identify submitted server version in publish diagnostics (#1621)
Publishing a manifest with a stale version currently produces a
duplicate-version error without identifying the version that was
submitted. This made a request containing `0.4.5` look like a rejected
publication of `0.4.6` in #1615.

Include the submitted `name@version` in the CLI output before sending
the request and in the API duplicate-version error. HTTP 400, the
response structure, and duplicate-rejection behavior remain unchanged.
The service wraps the existing error sentinel so `errors.Is` continues
to work.

Adds a CLI regression test for a failed publication and updates the API
duplicate-error assertion.

Validation:
- Publish command tests passed (`go test ./cmd/publisher/commands -run
TestPublishCommand -count=1`).
- `git diff --check` passed.
- API endpoint tests were attempted but could not run because PostgreSQL
was unavailable on localhost:5432; Docker was also unavailable locally.

Related to #1615.
2026-09-06 00:18:27 +03:00
..
registry_service.go fix: identify submitted server version in publish diagnostics (#1621) 2026-09-06 00:18:27 +03:00
registry_service_test.go fix: recalculate isLatest after status changes (#1081) (#1201) 2026-04-25 11:59:28 -04:00
service.go Publisher-managed "deleted" support (#893) 2026-02-27 09:00:07 -08:00
versioning.go feat: implement server versioning approach with semantic versioning support (#296) 2025-08-26 14:55:38 +01:00
versioning_test.go feat: implement server versioning approach with semantic versioning support (#296) 2025-08-26 14:55:38 +01:00