Read anonymously when a saved login is rejected
Rolling Release / build (push) Successful in 1m38s
Rolling Release / publish (push) Successful in 8s

A stale login made every read fail, and search blamed the registry for
it. Reads now warn and retry without the login; publishing never does.
A refused or missing package after the fallback reports the rejected
login, so a private package can't be replaced from a lower channel.

Search shows the real error, and the README no longer says Gitea lacks
the catalog API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-30 20:35:29 -08:00
1 parent 83e694c6c4
commit 2026319f61
5 files changed
+190 -25

No files matched your search

+3 -1
View File
@@ -105,6 +105,8 @@ See [examples/project](examples/project/README.md) for a working example project
Credentials are stored in `~/.orbit/auth.json` (`$ORBIT_ROOT/auth.json`, mode `0600`). Orbit also falls back to `~/.docker/config.json` (`$DOCKER_CONFIG/config.json`) including `credHelpers` and `credsStore`. Use `orbit logout <host>` to remove stored credentials from Orbit.
If a registry rejects the saved login, Orbit warns and reads anonymously, so public packages still work. Publishing always needs a valid login. When an anonymous read is refused or finds nothing, Orbit reports the rejected login instead of moving to the next channel, because the package may be private.
## Channels
Packages come from **channels**, which work like channels in pixi. A channel is a name for a registry namespace. The built-in `main` channel is `git.site.latha.org/nandi`, so no setup is needed.
@@ -250,4 +252,4 @@ Fixes needed for current MoonBit, kept here in case you build with an older comp
- There's no lock file for concurrent runs, and no install hooks, by design.
- `orbit gc` only preserves global current and rollback builds (run `orbit install` / `orbit sync` in a project to re-populate missing store entries from its `orbit.lock`).
- `orbit info <name>` reads globally installed package details without contacting the registry. Use `orbit versions <name>` to check published versions.
- `search` needs the registry's catalog API, which Gitea doesn't expose. Use `orbit versions <name>` if you already know the package name.
- `search` needs the registry's catalog API (Gitea has it, also without a login). If a registry doesn't offer it, use `orbit versions <name>`.