-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13770 - arlosi:cred-trim-newlines, r=epage
fix(credential): trim newlines in tokens from stdin ### What does this PR try to resolve? `cargo login` when using a credential provider other than `cargo:token` does not automatically trim whitespace from tokens. This can lead to extra whitespace being included in the pasted token value (usually a trailing newline) that makes the token invalid. ### How should we test and review this PR? First commit adds a test showing the problematic behavior. Second commit fixes it.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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
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