Skip to content

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

Closed

Description

@DanTup

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?

Activity

  1. added this to the v3.13.0 milestone on Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions