Skip to content

"dart run" breaks in subpath with outdated lock #61950

@davidmorgan

Description

@davidmorgan

If you use dart run from the package root, it seems to notice if the pubspec lock is out of date and update it

dart run test # works
touch pubspec.yaml
dart run test # works

but if you run from a subdirectory, it fails

cd lib
dart run test
touch ../pubspec.yaml
dart run test
--> fails "Could not find a file named "pubspec.yaml" in "/tmp/build_benchmark/built_value_loop_1000/lib"."

(yes, I know "dart run test" is a weird thing to do, I'm just using "test" as something you can probably run; any "dart run" should do the same).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-pubIssues related to the 'dart pub' tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions