dart-lang / build

A build system for Dart written in Dart
https://pub.dev/packages/build
BSD 3-Clause "New" or "Revised" License
791 stars 211 forks source link

Cannot run `dart run build_runner build` on package with git package dependencies #3654

Closed elliette closed 9 months ago

elliette commented 9 months ago

Thank you for taking the time to file an issue!

In order to route, prioritize, and act on this as soon as possible please include:

I noticed this when building DWDS: If I run dart run build_runner build with these git package dependency overrides included, I get the following error:

Resolving dependencies in /Users/elliottbrooks/dev/webdev/dwds... (1.6s)
Package not available (Could not find git ref 'e9590179fe412e59296685997e7182e7eed77e93' (fatal: cannot use bare repository '/Users/elliottbrooks/.pub-cache/git/cache/sdk-c3d9ebbda92029a8c03a173a3800f20db532b4ff' (safe.bareRepository is 'explicit'))).

If I remove the git package dependency overrides, then building DWDS succeeds.

Is this WAI, or should I be able to build with git package dependencies?

elliette commented 9 months ago

Closing this - pretty sure this is because the vm_service_interface dependency did not exist in the Dart SDK github repo at version 3.3.0