Skip to content

Conversation

szokeasaurusrex
Copy link
Member

username is completely unmaintained, and it depends on winapi, preventing us from supporting Windows on ARM. Use whoami instead to get the curent user.

Ref #1426

Copy link
Member Author

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this change manually to ensure whoami gets the correct username when using the sentry-cli send-event command. Example event here: https://sentry-sdks.sentry.io/issues/6438150058/events/a04c3b53975748abbaff4692a1bb977a/.

@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review March 21, 2025 14:01
@szokeasaurusrex
Copy link
Member Author

There are still some remaining transitive dependencies on winapi, but this PR might actually be sufficient to unblock #1426, since the remaining winapi transitive dependencies are on a newer version of winapi.

Base automatically changed from szokeasaurusrex/no-direct-winapi-dependency to master March 21, 2025 14:29
`username` is completely unmaintained, and it depends on `winapi`, preventing us from supporting Windows on ARM. Use `whoami` instead to get the curent user.

Ref #1426
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-username branch from 057ea74 to 28bb68b Compare March 24, 2025 08:58
@szokeasaurusrex szokeasaurusrex merged commit 653bdba into master Mar 24, 2025
14 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/remove-username branch March 24, 2025 09:21
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.

2 participants