Skip to content

pub run can't run a bin script in a transitive dependencies #21

Closed
@DartBot

Description

@DartBot

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="96" height="96"hspace="10"> Issue by sethladd
Originally opened as dart-lang/sdk#23426


Testing out pub run's ability to run scripts. It appears that it's unable to run a script in a dependency's dependency.

Setup:

package A
  depends on package B

package B
  depends on dartdoc

I tried running with pub run dartdoc:dartdoc from package A

Output/error:

Package "dartdoc" is not an immediate dependency.
Cannot run executables in transitive dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-as-intendedClosed as the reported issue is expected behaviortype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions