-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[windows][macOS][git] Calling flutter pub get
fails on CI with multiple projects with same dependency
#103981
Comments
flutter pub get
fails on CI with multiple projects with same dependencyflutter pub get
fails on CI with multiple projects with same dependency
Thanks @Gustl22 for the detailed report. Would like to know if this only happens on CI or locally too ? I tried locally per your steps to replicate by cloning the example you shared and then ran the commands for
I did get pub 66 exit code but the error seems to be different than you posted.
Running |
Hey @darshankawar, and thank you for testing. You DO NOT want to execute Also be aware of dart-lang/pub#3404. The error message may vary from time to time as the concurrency may fails at a different spot. |
Thanks for the feedback. Although I didn't try to Windows, but performing the same steps based on above input on macOS did run Based on the report and considering the fact that similar issue is open in dart-lang/pub repo, I'll keep this issue open for further insights from the team. |
Same issue here, it appears in the messages Produces the error when the Flutter inspector is launched Package devtools is currently active at version 2.9.4.
Rename failed, path = 'path\flutter.pub-cache_temp\dir1ceea84b' (OS Error: Cannot create a file when that file already exists. platform, windows 10. |
This issue is assigned to @christopherfujino but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
FYI: This may be fixed in dart-lang/pub@7ce2474 (not tested) |
This issue was assigned to @christopherfujino but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed. |
Sounds good, optimistically closing this as fixed. Feel free to re-open if you verify it is not fixed on the master channel with dart-lang/pub#4120. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
See: invertase/melos#289
See: dart-lang/pub#3404
Steps to Reproduce
flutter pub cache clean
on each of at least two projects with the same (git) dependency, for example this one.flutter pub get --verbose
at around the same time in both projects (e.g. via two terminals)Expected results:
Not to fail the second command
Actual results:
One command fails with exit code (66; errno = 183)
Firtst terminal:
Second terminal:
https://github.com/Gustl22/flutter_platform_test/runs/6469406757?check_suite_focus=true
pub_log.txt
of second executionLogs
complete log file here: pub_log.txt
This does not happen with dart command executed simultaneously:
Also note this bug plays a big role in CI via
melos
when executingmelos boostrap
, as thenflutter pub get
is called on every specified subproject in the repository. Therefore some CI workflows break on e.g. windows flutter drive tests.The text was updated successfully, but these errors were encountered: