mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
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.
3.4 KiB
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 │
╰──────────────────────────────────────────────────────────────────────────────╯