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

Better error messages when failing to parse pubspec #4474

Open
sigurdm opened this issue Dec 17, 2024 · 0 comments
Open

Better error messages when failing to parse pubspec #4474

sigurdm opened this issue Dec 17, 2024 · 0 comments

Comments

@sigurdm
Copy link
Contributor

sigurdm commented Dec 17, 2024

# pubspec.yaml:
name: blah
environment:
  sdk: ^3.6.0
dependencies:
  build:
    git: https://github.com/dart-lang/build
> dart pub get
Resolving dependencies... 
(53.5s)
Error on line 1, column 7: "name" field doesn't match expected name "build".

1 │ name: build_workspace     # Can be anything
  │       ^^^^^^^^^^^^^^^

Would be nice to show the path of inclusion to parsing the dependency.

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