Skip to content

tool thinks pub packages without a lib directory are always out of date #107957

@jmagman

Description

@jmagman

This logic is checking if package.packageUriRoot directory exists, so the lib directory.

if (!fileSystem.directory(package.packageUriRoot).existsSync()) {

flutter/packages#1951 removed this directory flutter_template_images

Removes the empty Dart file, which used to be required by pub.dev checks but no longer is.

But because the lib doesn't exist, on every run it thinks the pub dependencies are out of date, and pub get needs to be run.

Either that directory is needed, or the tool needs to be updated.

See #107873 (comment)

Metadata

Metadata

Assignees

Labels

packageflutter/packages repository. See also p: labels.toolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions