Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

age: Don't exit peeking state if entire identity file fits in the buffer #519

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

str4d
Copy link
Owner

@str4d str4d commented Aug 28, 2024

This ensures we can call PeekableReader::reset when the file is a single line without a trailing newline character, which rage-keygen does not generate but users can.

Closes #484.

Specifically, a single line and no trailing newline.
@str4d str4d added this to the rage 0.11.0 milestone Aug 28, 2024
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.64%. Comparing base (d76c85d) to head (5a57e12).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #519      +/-   ##
==========================================
+ Coverage   50.57%   50.64%   +0.07%     
==========================================
  Files          42       42              
  Lines        4117     4121       +4     
==========================================
+ Hits         2082     2087       +5     
+ Misses       2035     2034       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This ensures we can call `PeekableReader::reset` when the file is a
single line without a trailing newline character, which rage-keygen does
not generate but users can.

Closes #484.
@str4d str4d force-pushed the 484-identity-file-newline-fix branch from 548ee65 to 5a57e12 Compare August 28, 2024 02:57
@str4d str4d merged commit 84eacb7 into main Aug 28, 2024
37 checks passed
@str4d str4d deleted the 484-identity-file-newline-fix branch August 28, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hard to understand error message when the identity file does not end with a \n
1 participant