Skip to content

New pub version breaks tests #24102

Closed
Closed
@whesse

Description

@whesse

The new version of pub breaks existing tests, because it requires a .pubspec.lock file and a .packages file to run pub build.

The test dart2js/source_map_pub_build_validity_test copies the sunflower sample to a new directory and runs pub build on it.

The new version of pub fails with an error, saying pub get must be run first.

Also, if pub get has been run, from a prior version of pub, pub build fails and says a .packages file must be present.

buildbot failure:
http://build.chromium.org/p/client.dart/builders/dart2js-linux-release-minified-2-5-be/builds/11761/steps/dart2js_unit-vm%20tests%20--checked%20failures/logs/stdio

@nex3

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failures

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions