mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-24 13:50:35 +08:00
Previously, a config would load fine with an invalid alias, due to how serde is configured for the `Alias` type. This fixes it.
448 B
448 B
Note that aliases must not be longer than 32 bytes, or you will get an error. There are other rules as well:
$ rad auth --alias "5fad63fe6b339fa92c588d926121bea6240773a7"
✗ Error: rad auth: alias cannot be greater than 32 bytes
$ rad auth --alias "john doe"
✗ Error: rad auth: alias cannot contain whitespace or control characters
$ rad auth --alias ""
✗ Error: rad auth: alias cannot be empty