Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop swallowing errors from create_hash_table during the build [take 2] #7110

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Stop swallowing errors from create_hash_table during the build [take 2] #7110

merged 3 commits into from
Nov 17, 2023

Conversation

dottedmag
Copy link
Contributor

@dottedmag dottedmag commented Nov 14, 2023

What does this PR do?

If src/codegen/create_hash_table can't be run due to some reason (e.g. due to missing Math::BigInt Perl module) the build continues but fails later, during bindings compilation, because the generated files are empty.

Fix it by handling the failure to run create_hash_table properly.

Closes #7074

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

By manually testing the build in a minimal Fedora chroot with and without perl-Math-BigInt-GMP package

If src/codegen/create_hash_table can't be run due to some reason
(e.g. due to missing Math::BigInt Perl module) the build continues
but fails later, during bindings compilation, because the generated
files are empty.

Fix it by handling the failure to run create_hash_table properly.

Closes #7074
Copy link
Collaborator

@paperdave paperdave left a comment

Choose a reason for hiding this comment

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

thanks

@paperdave paperdave self-assigned this Nov 17, 2023
@paperdave paperdave merged commit 3eb086f into oven-sh:main Nov 17, 2023
20 of 28 checks passed
ryoppippi pushed a commit to ryoppippi/bun that referenced this pull request Feb 1, 2024
…ld (oven-sh#7110)

* Stop swallowing errors from create_hash_table during the build

If src/codegen/create_hash_table can't be run due to some reason
(e.g. due to missing Math::BigInt Perl module) the build continues
but fails later, during bindings compilation, because the generated
files are empty.

Fix it by handling the failure to run create_hash_table properly.

Closes oven-sh#7074

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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.

Missing Math::BigInt Perl module silently breaks build
2 participants