dart-lang/build

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

elliette opened this issue · 1 comments

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:

  • Dart SDK Version (dart --version)
    Dart SDK version: 3.3.0 (stable) (Tue Feb 13 10:25:19 2024 +0000) on "macos_x64"

  • What package(s) from this repo you are using, and the version (i.e. build_runner 0.7.12)
    2.4.8

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?

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