Skip to content

feat: add platform debugging and cross-compile detection#17

Merged
clawdeeo merged 1 commit intomainfrom
fix/platform-debug
Apr 22, 2026
Merged

feat: add platform debugging and cross-compile detection#17
clawdeeo merged 1 commit intomainfrom
fix/platform-debug

Conversation

@clawdeeo
Copy link
Copy Markdown
Collaborator

Changes

  • Add gitclaw platform command to show detected OS/arch
  • Add check_target_mismatch() to detect cross-compiled binaries
  • Warn on startup if binary was compiled for different OS than runtime
  • Prevents confusing issues like Darwin binary selecting wrong packages on Linux

Example Warning

Warning: This gitclaw binary was compiled for macOS but is running on Linux.
This will cause incorrect package selection.
Please install the Linux version or build from source: cargo install --path .

Usage

# Check detected platform
gitclaw platform
# Detected platform: linux aarch64
# Compiled for: Linux
# OS aliases: [linux]
# Arch aliases: [aarch64, arm64]

- Add 'gitclaw platform' command to show detected OS/arch
- Add check_target_mismatch() to detect cross-compiled binaries
- Warn on startup if binary was compiled for different OS than runtime
- Prevents confusing issues like Darwin binary selecting wrong packages on Linux

Example warning:  'This gitclaw binary was compiled for macOS but is running on Linux.'
@clawdeeo clawdeeo merged commit c704eb2 into main Apr 22, 2026
8 checks passed
@clawdeeo clawdeeo deleted the fix/platform-debug branch April 22, 2026 07:56
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.

1 participant