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(cli): Respect implied BYONM from DENO_FUTURE in deno task #24652

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

nathanwhit
Copy link
Member

Regression from 04f9db5

Originally I thought to fix the issue in the PR we needed to explicitly pass through the node-modules-dir flag, but after applying the correct fix that david pointed out (setting NPM_PROCESS_STATE) that wasn't necessary (or correct).

We had a test for deno task with BYONM, but it only tested with "unstable": ["byonm"] in deno.json, so it didn't catch this.

@@ -308,7 +303,6 @@ impl ShellCommand for NodeModulesFileRunCommand {
let mut args = vec![
"run".to_string(),
"--ext=js".to_string(),
"--node-modules-dir=true".to_string(),
Copy link
Member Author

Choose a reason for hiding this comment

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

The bug

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM!

@nathanwhit nathanwhit enabled auto-merge (squash) July 19, 2024 18:30
@nathanwhit nathanwhit merged commit a4c76ad into denoland:main Jul 19, 2024
17 checks passed
@nathanwhit nathanwhit deleted the byonm-regression branch July 19, 2024 19:21
bartlomieju pushed a commit that referenced this pull request Jul 22, 2024
Regression from
04f9db5

Originally I thought to fix the issue in the PR we needed to explicitly
pass through the `node-modules-dir` flag, but after applying the correct
fix that david pointed out (setting `NPM_PROCESS_STATE`) that wasn't
necessary (or correct).

We had a test for deno task with BYONM, but it only tested with
`"unstable": ["byonm"]` in deno.json, so it didn't catch this.
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