Skip to content

feat: produce single executable binary#18

Closed
rtorresware wants to merge 1 commit intotigrisdata:mainfrom
rtorresware:single-executable
Closed

feat: produce single executable binary#18
rtorresware wants to merge 1 commit intotigrisdata:mainfrom
rtorresware:single-executable

Conversation

@rtorresware
Copy link

@rtorresware rtorresware commented Feb 11, 2026

Leverage bun to produce a single executable binary.

The registry pattern was used so bun could know the code at compile time (required for a single executable binary).

A big portion of the code additions is the bun.lock file.


Note

Medium Risk
Moderate risk because command discovery/loading behavior changes from dynamic path-based imports to a hardcoded registry, which can break missing/mismapped commands at runtime; otherwise changes are build/tooling oriented.

Overview
Updates src/cli.ts to stop checking the filesystem and dynamically importing ./lib/... command implementations; it now resolves commands via getModule/hasModule.

Adds src/lib/registry.ts, a statically-imported registry mapping command keys (e.g. iam.policies.get) to their modules to make all code visible at build time for Bun single-binary packaging. Also adds the generated bun.lock lockfile for Bun dependency pinning.

Written by Cursor Bugbot for commit 8cb8d69. This will update automatically on new commits. Configure here.

@designcode
Copy link
Collaborator

Thanks for the PR @rtorresware. As I mentioned in the original issue, our current focus at the moment is to add missing features.

@ovaistariq ovaistariq reopened this Feb 13, 2026
@ovaistariq
Copy link

@rtorresware thanks for the contribution.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@designcode
Copy link
Collaborator

@rtorresware Similar to you what you have implemented, I have drafted a PR that produces binaries using Bun
#22

Instead of creating a static registry, I've implemented creation of registry on build time. Also, going forward, we will be maintaining the single binary releases, so the actions are included to add the binaries to releases. Please take a look and let me know what are your thoughts?

@rtorresware
Copy link
Author

@designcode looks great, thanks!

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.

3 participants

Comments