The reason I'm asking it that I'm working on a package, actually flutter plugin and when I reference it local in my apps pubspec.yaml using path: everything works fine and I can see a .packages file being generated inside the local plugin workdir. Now if I now try to reference the plugin using git: in my apps pubspec, flutter pub get is happy BUT when I try to run the app, the build fails with an error mesg:
Launching lib/main.dart on XYZ in debug mode...
/home/maksimlin/.pub-cache/git/edit_exif-3c87efc135c1269b5961ff73696a19e988132ad7/.packages does not exist.
Did you run "flutter pub get" in this directory?
FAILURE: Build failed with an exception.
* Where:
Script '/home/maksimlin/fvm/versions/dev/packages/flutter_tools/gradle/flutter.gradle' line: 896
* What went wrong:
Execution failed for task ':edit_exif:compileFlutterBuildDebug'.
> Process 'command '/home/maksimlin/fvm/versions/dev/bin/flutter'' finished with non-zero exit value 1
and sure enough if I copy the .packages autogenerated file from my local plugin workdir into the the pub-cache location my app builds fine
So is something broken with pub auto-generating .packages for cached from git packages? or have I done something wrong with my plugin?
Unfortunately I can't seem to find much (any) documentation on the usage of .package files, especially for cached packages.