Files
Lorenz Leutgeb 138404df6f radicle: Rely less on ….project payload
Many codepaths error if the `xyz.radicle.project` payload is not present
in the identity document. Change these to fall back gracefully.

Loading of payloads is unified in `GetPayload`.

An important detail is that `PayloadError::NotFound` is removed, and
`Option` is used instead.
2026-08-30 17:37:09 +02:00

3.4 KiB

By default rad seed should add a seeding policy with the followed scope:

$ rad seed --no-fetch rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
✓ Seeding policy updated for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji with scope 'followed'
$ rad seed
╭─────────────────────────────────────────────────────────────────────────────────╮
│ Repository                          Name                      Policy   Scope    │
├─────────────────────────────────────────────────────────────────────────────────┤
│ rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji   Error determining name.   allow    followed │
╰─────────────────────────────────────────────────────────────────────────────────╯

The policy can be updated by explicitly specifying a different scope:

$ rad seed --no-fetch rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --scope all
✓ Seeding policy updated for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji with scope 'all'
$ rad seed
╭──────────────────────────────────────────────────────────────────────────────╮
│ Repository                          Name                      Policy   Scope │
├──────────────────────────────────────────────────────────────────────────────┤
│ rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji   Error determining name.   allow    all   │
╰──────────────────────────────────────────────────────────────────────────────╯

Running rad seed again without an explicit scope parameter should not change the existing policy:

$ rad seed --no-fetch rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
✓ Seeding policy exists for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji with scope 'all'
$ rad seed
╭──────────────────────────────────────────────────────────────────────────────╮
│ Repository                          Name                      Policy   Scope │
├──────────────────────────────────────────────────────────────────────────────┤
│ rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji   Error determining name.   allow    all   │
╰──────────────────────────────────────────────────────────────────────────────╯