mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
This keeps the top level of the repo cleaner, e.g. <https://github.com/radicle-dev/heartwood> scrolls less and <https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/> might show more files at the top level. This way we also don't have to explicitly name all crates in `Cargo.toml`.
56 lines
1.9 KiB
Markdown
56 lines
1.9 KiB
Markdown
When using an open seeding policy, it can be useful to block individual
|
|
repositories from being seeded.
|
|
|
|
For instance, if our default policy is to seed, any unknown repository will
|
|
have its policy set to allow seeding:
|
|
```
|
|
$ rad inspect rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --policy
|
|
Repository rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji is being seeded with scope `all`
|
|
```
|
|
|
|
Since there is no policy specific to this repository, there's nothing to be
|
|
removed.
|
|
|
|
```
|
|
$ rad seed
|
|
No seeding policies to show.
|
|
```
|
|
|
|
But if we wanted to prevent this repository from being seeded, while
|
|
allowing all other repositories, we could use `rad block`:
|
|
|
|
```
|
|
$ rad block rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
|
|
✓ Policy for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji set to 'block'
|
|
```
|
|
|
|
We can see that it is now no longer seeded:
|
|
|
|
```
|
|
$ rad inspect rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --policy
|
|
Repository rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji is not being seeded
|
|
```
|
|
|
|
And a 'block' policy was added:
|
|
|
|
```
|
|
$ rad seed
|
|
╭───────────────────────────────────────────────────────────╮
|
|
│ Repository Name Policy Scope │
|
|
├───────────────────────────────────────────────────────────┤
|
|
│ rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji block all │
|
|
╰───────────────────────────────────────────────────────────╯
|
|
```
|
|
|
|
If we want to reverse the blocking of the RID we can use `rad unblock`:
|
|
|
|
```
|
|
$ rad unblock rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
|
|
✓ The 'block' policy for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji is removed
|
|
```
|
|
|
|
```
|
|
$ rad seed
|
|
No seeding policies to show.
|
|
```
|