Skip to content

Unclear error when package contains no entrypoints #49

@nex3

Description

@nex3

From @maxwellpeterson-wf on March 22, 2016 17:55

If you try to publish a package that does not have any .dart files in lib/, the following happens:

Uploading... (5.1s)
Bad state: The transaction has already been committed..

This happens because the libraries property on the PackageVersion entity does not get set, so the commit actually fails.

Error while committing: ApplicationError: Property "libraries" has no value., #0      _validateResponse.<anonymous closure> (package:googleapis_beta/src/common_internal.dart:880:11)

It would be great if there was a more clear error presented when this happens :)

Copied from original issue: dart-lang/pub#1398

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions