Skip to content

Conversation

smihica
Copy link

@smihica smihica commented Sep 2, 2025

📜 Description

The processor architecture in the relevant section was as follows,

switch (SysInfo.kernelArchitecture.name.toLowerCase()) {
  case 'arm':
  case 'armv6':
  case 'armv7':
    return HostPlatform.linuxArmv7;
  case 'aarch64':
    return HostPlatform.linuxAarch64;
  case 'amd64':
  case 'x86_64':
    return HostPlatform.linux64bit;

but the SysInfo.kernelArchitecture.name returns different values.
See here => https://github.com/onepub-dev/system_info/blob/master/lib/src/processor_architecture.dart

My aarch64 linux was failing to run by this bug.

$ dart run sentry_dart_plugin
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 0% reading config values..        
Searching for pubspec.yaml or sentry.properties config...
Found config from pubspec.yaml
Failed to download Sentry CLI: Exception: Host platform not supported: linux ARM64

↑ The name was ARM64

This fixes the problem.

💡 Motivation and Context

To release my app.

💚 How did you test it?

Run in my environment.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

@smihica smihica changed the title Fixed processor architectures in Linux BugFix: processor architecture selector for Linux Sep 3, 2025
Copy link
Contributor

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

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

thanks! looks good to me

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