Repository navigation
[extension_discovery] Fix reliablyRename always throwing after rename on Windows - #2726
Conversation
… on Windows Fixes #2681
There was a problem hiding this comment.
Code Review
This pull request fixes a bug in the _attempt helper function within pkgs/extension_discovery/lib/src/io.dart by adding a missing return statement when executing the provided function. This prevents the retry loop from running indefinitely on a successful execution, which previously caused reliablyRename on Windows to fail. A corresponding entry has also been added to the changelog. No review comments were provided, and there is no additional feedback.
PR HealthBreaking changes ✔️
This check can be disabled by tagging the PR with Coverage ✔️
This check for test coverage is informational (issues shown here will not fail the PR). This check can be disabled by tagging the PR with Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
This check can be disabled by tagging the PR with 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.
This check can be disabled by tagging the PR with
Unused Dependencies
|
| Package | Status |
|---|---|
| extension_discovery | ❗ Show IssuesThese packages are used outside lib/ but are not dev_dependencies: |
For details on how to fix these, see dependency_validator.
This check can be disabled by tagging the PR with skip-unused-dependencies-check.
Return
await fn()inside the retry loop in_attemptso it does not runfn()a second time on Windows after a successful call.Fixes #2681