Skip to content

Feature: Optimize Makefile to Build for Current OS/Arch by Default #84

@ani1609

Description

@ani1609

🔖 Feature description

Currently, the Makefile builds binaries for all supported OS and architecture combinations (Windows, Linux, macOS — amd64, arm64, etc.) when running make build. This results in unnecessary builds during local development, especially when the developer only needs the binary for their current platform.

🎤 Pitch

In my use case, as a developer working on macOS, I don't need .exe or Linux binaries when building and testing locally. However, the current setup builds all of them every time, which slows down development and adds clutter in the bin/ directory.

This feature would significantly improve developer experience by:

  • Reducing local build time
  • Avoiding unnecessary artifacts
  • Making the build process more relevant and efficient during development

At the same time, it still allows full cross-compilation in CI pipelines where it's actually required.

✌️ Solution

I want this feature to:

  • Default the Makefile to build only for the developer’s current OS and architecture
  • Support optional GOOS and GOARCH environment variables to allow cross-compilation when needed (e.g., in CI)

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions