我在我的 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'
Run Code Online (Sandbox Code Playgroud)
和加载适配器:
loading:
git:
url: git://github.com/leonzone/loading.git
path: loading
ref: 8f5a63f
Run Code Online (Sandbox Code Playgroud)
一切正常,直到今天。我对以上两行都收到此错误:
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!
Run Code Online (Sandbox Code Playgroud)
ale*_*xtk 27
我的猜测是它可以通过对设置为发布的包进行额外检查来帮助您防止发布虚拟/旧包。您应该添加(在文档的根部,例如在version字段之后):
publish_to: none
Run Code Online (Sandbox Code Playgroud)
给你的 pubspec.yaml
| 归档时间: |
|
| 查看次数: |
5556 次 |
| 最近记录: |