Skip to content

Every dart test/flutter test causes a "downloading dependencies" again #60670

Open
@rrousselGit

Description

@rrousselGit

Whenever I run dart test, the command always seems to trigger a redownload of dependencies. This is noisy and inefficient
See the video as demonstration of the issue:

Screen.Recording.2025-05-04.at.04.12.02.mov

As you can see, running dart test always starts with:

Resolving dependencies in `/Users/remirousselet/dev/rrousselGit/riverpod`... 
Downloading packages... 
Got dependencies in `/Users/remirousselet/dev/rrousselGit/riverpod`.
Resolving dependencies in `/Users/remirousselet/dev/rrousselGit/riverpod`... 
Downloading packages... 
Got dependencies in `/Users/remirousselet/dev/rrousselGit/riverpod`.

Tested on

Dart SDK version: 3.9.0-76.0.dev (dev) (Wed Apr 30 13:02:37 2025 -0700) on "macos_arm64"

I am not sure how to share a reproduction for this. But the video was taken by running dart test on the open source riverpod repository (specifically inside packages/riverpod)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-testIssues related to the 'dart test' tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions