You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Registry login interactive mode cannot read password/token over 128 chars long (#6562) (#6614)
* Registry login interactive mode cannot read password/token over 128 chars long
Motivation:
`swift package-registry login` in interactive mode truncates input when the provided password/token is more than 128 chars long. This is a limitation of `getpass`.
rdar://109372320
Modifications:
- Use `readpassphrase`, which allows custom input length, instead of `getpass`.
- Improve error message when the provided password/token is too long.
- Increase password/token length limit to 512 chars
* Continue using getpass on non-Darwin, non-Windows platforms
* include more details in Windows error messages
0 commit comments