Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Registry login interactive mode cannot read password/token over 128 c…
…hars 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
- Loading branch information
Showing
2 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters