Skip to content

pub upgrade generates wrong symlink in sample if sample has it's own pubspec.yaml #24251

Closed
@MikeMitterer

Description

@MikeMitterer

I think there is still a problem in Analyzer - it has problems with standalone samples. You can see here what I mean with "standalone": https://goo.gl/qeb42u Each sample lives in it's own universe with it's own pubspec.yaml. The only connection to it's parent lib is through something like this: https://goo.gl/R2VqcZ

I borrowed this idea from the Angular guys and it's much more flexible than the default way. (default way = share base pubspec with sample pubspec)

Today I switched back to IntelliJ IDEA (Cassiopeia) IU-141.2552.1
Build #IU-141.2552, built on August 27, 2015
JRE: 1.6.0_65-b14-462-11M4609 x86_64
JVM: Java HotSpot(TM) 64-Bit Server VM by Apple Inc.
(back from IJ 15 EAP)

and made a pub upgrade for my MDL/Dart lib and it generated a package for every sample back to it's parent - this is wrong if the sample has it's own pubspec.yaml!

I think this problem is somehow related to #24238

screenshot-1841

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-as-intendedClosed as the reported issue is expected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions