-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] tool exit access denied during symlinking #106213
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
[flutter_tools] tool exit access denied during symlinking #106213
Conversation
7aef7bd to
8d8d42e
Compare
|
|
||
| expect(() => handleSymlinkException(e, platform: platform, os: os), returnsNormally); | ||
| expect( | ||
| () => handleSymlinkException( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add 2 more tests that hits this two different instructions? final String instructions = (version != null && version >= Version(10, 0, 14972)) .... Or let me know if I am reading this tests wrong and you are already catching that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't really update this behavior or test, I just updated the function signature and made the fields required (the only real new test here is Symlink ERROR_ACCESS_DENIED failures show developers paths that were used.
Note the test on line 1614 covers newer windows versions.
Jasguerrero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This pull request is not suitable for automatic merging in its current state.
|
|
This pull request is not suitable for automatic merging in its current state.
|
Fixes #96568
Throw a tool exit with paths to the where symlinking from and to (most likely the pubcache doesn't have read permissions).