Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Melos project with multiple pubspec.yaml files #51

Open
fstof opened this issue May 13, 2023 · 0 comments
Open

Melos project with multiple pubspec.yaml files #51

fstof opened this issue May 13, 2023 · 0 comments

Comments

@fstof
Copy link

fstof commented May 13, 2023

Melos workspaces now require a pubspec.yaml file in the root.

When fixing imports it seems the extension is finding both my app's pubspec and the melos workspace's pubspec and cant decide which one the relative import should be based on

Expected to find a single pubspec.yaml file above file:///xxx/projectX/app/lib/main.dart, 2 found.

projectX is the melos workspace with pubspec.yaml and then app is one of the "packages" defined in melos.yaml

melos workspace pubspec content

name: projectx_workspace

environment:
  sdk: '>=3.0.0 <5.0.0'

dev_dependencies:
  melos: ^3.0.1

partial app pubspec content

name: projectx
description: A Very Good Project created by Very Good CLI.
version: 1.0.0+1
publish_to: none

environment:
  sdk: '>=3.0.0 <4.0.0'

dependencies:
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant