Skip to content

[hooks_runner] Fix Windows executable handling in runProcess - #3472

Merged
dcharkes merged 1 commit into
dart-lang:mainfrom
jakobkordez:fix/dart-sdk-fail
Jul 13, 2026
Merged

[hooks_runner] Fix Windows executable handling in runProcess#3472
dcharkes merged 1 commit into
dart-lang:mainfrom
jakobkordez:fix/dart-sdk-fail

Conversation

@jakobkordez

Copy link
Copy Markdown
Contributor

Description

Fixes issue mentioned in #3466

PR Checklist

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
  • I've run dart tool/ci.dart --all locally and resolved all issues identified. This ensures the PR is formatted, has no lint errors, and ran all code generators. This applies to the packages part of the toplevel pubspec.yaml workspace.
  • All existing and new tests are passing. I added new tests to check the change I am making.
  • The PR is actually solving the issue. PRs that don't solve the issue will be closed. Please be respectful of the maintainers' time. If it's not clear what the issue is, feel free to ask questions on the GitHub issue before submitting a PR.
  • I have updated CHANGELOG.md for the relevant packages. (Not needed for small changes such as doc typos).
  • I have updated the pubspec package version if necessary.

@jakobkordez

Copy link
Copy Markdown
Contributor Author

@dcharkes let me know if the platform checks in the new tests are ok or if you prefer a better way

? path
: path.substring(lastSeparator + 1);
final dot = fileName.lastIndexOf('.');
// No extension (e.g. a bare command name resolved via `PATHEXT`).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

riiight, pathext

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

PR Health

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?
hooks_runner Non-Breaking 1.5.0 1.6.0-wip 1.6.0-wip ✔️

This check can be disabled by tagging the PR with skip-breaking-check.

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources

This check can be disabled by tagging the PR with skip-leaking-check.

@jakobkordez

Copy link
Copy Markdown
Contributor Author

I'm still not sure this is an optimal solution... and not sure what is

@dcharkes

Copy link
Copy Markdown
Collaborator

I'm still not sure this is an optimal solution... and not sure what is

I don't think there is going to be a pretty solution. We unfortunately see the corner cases of what Windows expose to us. Let's see if this goes green on the Dart CI.

@dcharkes
dcharkes merged commit 7b299f3 into dart-lang:main Jul 13, 2026
37 of 38 checks passed
@dcharkes

Copy link
Copy Markdown
Collaborator

Brr, unfortunately the CI did go red but it was hidden due to flakiness. 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants