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

fix: Check for kUnknown ExecutableFormat #84

Merged
merged 5 commits into from
May 1, 2023

Conversation

dfellis
Copy link
Contributor

@dfellis dfellis commented Apr 28, 2023

Unsure what, if any, testing is wanted for PRs. Let me know. :)

@dfellis dfellis changed the title Check for kUnknown ExecutableFormat fix: Check for kUnknown ExecutableFormat Apr 28, 2023
Copy link
Contributor

@RaisinTen RaisinTen left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks!

(Posting the link to where you found this - #12 (comment) for context for others)

if any, testing is wanted

Yea, would be nice if we could add a test to test/cli.mjs that tries to create a temporary file with an invalid format (I guess it could even be an empty file) and checks that postject throws the right exception

src/api.js Outdated Show resolved Hide resolved
dfellis and others added 2 commits April 29, 2023 09:06
Copy link
Member

@robertgzr robertgzr left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@RaisinTen RaisinTen left a comment

Choose a reason for hiding this comment

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

I ran CI on my fork - https://app.circleci.com/pipelines/github/RaisinTen/postject/3/workflows/a0657615-c702-4934-88b5-2b3bb41706ac and there are some relevant errors. We can fix the linting errors by running npm run format. This test also seems to be running out of time on CI, so we could add a timeout to fix that.

test/cli.mjs Outdated Show resolved Hide resolved
dfellis and others added 2 commits May 1, 2023 10:15
Copy link
Contributor

@RaisinTen RaisinTen left a comment

Choose a reason for hiding this comment

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

@RaisinTen RaisinTen merged commit 2481868 into nodejs:main May 1, 2023
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