fix(ext/node): process.argv[0] is equivalent to execPath#28915
Open
littledivy wants to merge 16 commits intodenoland:mainfrom
Open
fix(ext/node): process.argv[0] is equivalent to execPath#28915littledivy wants to merge 16 commits intodenoland:mainfrom
process.argv[0] is equivalent to execPath#28915littledivy wants to merge 16 commits intodenoland:mainfrom
Conversation
kt3k
previously approved these changes
May 21, 2025
Contributor
|
I think we could redo the CI and merge this one |
Looks like 2 cases consistently failing?
specs::npm::deno_run_cowthink
specs::task::byonm::deno_json
Contributor
|
@Tango992 Can you take a look at what's happening on the 2 cases above? |
Member
|
We can't make
And it literally hardcodes regex to check if it's node/iojs/electron. |
The compiled binary is named "cowthink" so argv[0] contains "cowthink" and yargs correctly produces cowthink output, unlike `deno run` where argv[0] is the deno executable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
2 tasks
argv[0] was set to `String(execPath)` before `execPath` was initialized, resulting in an empty string. Use `Deno.execPath()` directly instead. Remove cowthink/cowsay tests that can't work correctly because yargs hardcodes a regex for node/iojs/electron in process.argv[0]. Add a direct process_argv0 spec test instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #28889