Skip to content

Add a binary run test - #2356

Merged
Ford544 merged 1 commit into
mainfrom
bin-run-test
Oct 12, 2026
Merged

Ford544 merged 1 commit into
mainfrom
bin-run-test

Conversation

@Ford544

@Ford544 Ford544 commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

This adds a test running the CLI bundle directly (without specifying Node as the executor). This catches errors with malformed shebang line (which is ignored by Node but causes errors on direct invocation - such as when a user installs downloads the cli package from npm registry and tries to run dataform).

Example failure path: in packages/index.bzl, break the shebang by changing "#!/usr/bin/env node\n" to "#!/usr/bin/env node\\n" (extra backslash). All other tests pass, but the bundle fails with:

env: ‘node\n// Copyright 2023 Google LLC’: No such file or directory
env: use -[v]S to pass options in shebang lines

@Ford544
Ford544 added this pull request to stack #2357 October 5, 2026 09:01
@Ford544
Ford544 requested a review from a team as a code owner October 5, 2026 09:01

@apilaskowski apilaskowski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is a HUGE list of conflicts now, please take care of those after previous PR is fixed.

@Ford544

Ford544 commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased, no more merge conflicts

Base automatically changed from bazel-aspect-rules to main October 12, 2026 09:53
@Ford544
Ford544 merged commit 8a48dbd into main Oct 12, 2026
10 checks passed
@Ford544
Ford544 deleted the bin-run-test branch October 12, 2026 09:59
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