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

fix(info): mask username on Windows #2902

Merged

Conversation

sapphi-red
Copy link
Contributor

Check List

On windows, user.Current().Username returns a string with domain and user concatenated. This seems to be called as down-level logon name.
This PR makes the domain part to be trimmed, so that the username is masked when running the info command.

@suzuki-shunsuke
Copy link
Member

Thank you for your contribution!

@suzuki-shunsuke suzuki-shunsuke added the bug Something isn't working label May 18, 2024
Co-authored-by: Shunsuke Suzuki <[email protected]>
@suzuki-shunsuke suzuki-shunsuke added this to the v2.28.1 milestone May 18, 2024
@suzuki-shunsuke suzuki-shunsuke merged commit 5f9df45 into aquaproj:main May 18, 2024
10 checks passed
@sapphi-red sapphi-red deleted the fix/info-mask-username-on-windows branch May 18, 2024 10:55
@suzuki-shunsuke
Copy link
Member

v2.28.1 is out 🎉
https://github.com/aquaproj/aqua/releases/tag/v2.28.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aqua info: user name isn't masked on Windows
2 participants