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

"pub get" runs automatically when running Flutter app due to plugins symlinks #2590

Closed
DanTup opened this issue Jun 27, 2020 · 0 comments
Closed
Labels
in flutter Relates to running Flutter apps is bug
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Jun 27, 2020

When building a new Flare game (with no build folder), this shows up in the log:

[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/window_size/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/audioplayers/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/path_provider/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/path_provider_linux/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/path_provider_macos/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/path_provider/example/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/path_provider_linux/example/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/path_provider_macos/example/pubspec.yaml was modified
[3:46:18 PM] [General] [Info] Pubspec /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/audioplayers/example/pubspec.yaml was modified

And that triggers a pub get:

Spawned /Users/danny/Dev/Google/flutter/bin/flutter pub get in /Users/danny/Dev/Games/flare_playground/macos/Flutter/ephemeral/.symlinks/plugins/audioplayers/example
Logging data for process...
Running "flutter pub get" in example...
Cannot open file, path = '/Users/danny/.pub-cache/global_packages/audioplayers_example/pubspec.lock' (OS Error: No such file or directory, errno = 2)
pub get failed (66; Cannot open file, path = '/Users/danny/.pub-cache/global_packages/audioplayers_example/pubspec.lock' (OS Error: No such file or directory, errno = 2))
exited (66, null)
closed (66, null)

We should probably ignore any modified pubspecs in paths that have segments starting . or that are build?

@DanTup DanTup added is bug in flutter Relates to running Flutter apps labels Jun 27, 2020
@DanTup DanTup added this to the v3.13.0 milestone Jun 27, 2020
@DanTup DanTup closed this as completed in e4ab959 Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in flutter Relates to running Flutter apps is bug
Projects
None yet
Development

No branches or pull requests

1 participant