我在我的pubspec.yaml中使用Sembast Cloud Firestore类型的适配器:
sembast_cloud_firestore_type_adapters:
git:
url: git://github.com/tekartik/sembast_flutter_more.dart
path: cloud_firestore_type_adapters
ref: dart2
version: '>=0.1.0'
和加载适配器:
loading:
git:
url: git://github.com/leonzone/loading.git
path: loading
ref: 8f5a63f
直到今天,一切都运行得很好。我在上面的两行代码中都得到了这个错误:warning: Publishable packages can't have git dependencies.
这是我的flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.24.0-7.0.pre.71, on Mac OS X 10.15.7 19H2 darwin-x64,
locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.50.1)
[✓] Connected device (3 available)
• No issues found!
发布于 2020-11-08 03:16:24
我的猜测是,通过对设置为要发布的包进行额外检查,它可以帮助您防止发布虚拟/旧包。您应该添加(在文档的根目录,例如在version
字段之后):
publish_to: none
发送到您的pubspec.yaml
https://stackoverflow.com/questions/64660407
复制相似问题