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

feat(task): cross-platform shebang support #23091

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 27, 2024

Adds cross-platform shebang support (supports using shebangs in deno task on Windows)

denoland/deno_task_shell#113

@dsherret dsherret added this to the 1.42 milestone Mar 27, 2024
let executable_command =
deno_task_shell::ExecutableCommand::new("deno".to_string());
let executable_command = deno_task_shell::ExecutableCommand::new(
"deno".to_string(),
Copy link
Member

Choose a reason for hiding this comment

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

Just making sure - specifying deno here will use the current executable, not look up deno on the PATH?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's for the display name in error messages.

Copy link
Member Author

@dsherret dsherret Mar 27, 2024

Choose a reason for hiding this comment

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

By the way, this is also a bug fix because previously it wouldn't use the current executable.

Edit: Actually no, it worked correctly before.

@dsherret
Copy link
Member Author

Opened denoland/docs#384

@dsherret dsherret merged commit 624e3a0 into denoland:main Mar 27, 2024
17 checks passed
@dsherret dsherret deleted the feat_task_cross_platform_shebang branch March 27, 2024 17:19
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