Skip to content

pub transformer does not get access to pubspec.yaml as an asset #1191

Closed
@DartBot

Description

@DartBot

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


What steps will reproduce the problem?

  1. Write a transformer that attempts to use information in pubspec.yaml

What is the expected output? What do you see instead?
pubspec.yaml appears as asset
Actual:
pubspec.yaml never processed as asset

What version of the product are you using?
1.7.2

On what operating system?
Mac OS X

Please provide any additional information below.
Some metadata provided in the pubspec.yaml file (e.g. version. name, description) would be useful to some pub transformers

Work around:
On transformer construction current working directory is project root - so path can be constructed to pubspec.yaml at that point and read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-duplicateClosed in favor of an existing reporttype-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