fork in GitHub 后 flutter 插件无法正常工作
flutter plugin don't work well after fork in GitHub
到目前为止,我正在使用名为 cell_info 版本 0.2.9 的 Flutter 插件,但我发现插件中存在问题,因此从 Github 中分叉出来并修复它并使用 git URL 在 pubspec.yaml 中像这样:
cell_info:
git:
url: http://github.com/flycomm-tech/FlutterCellInfo.git
但是奇怪的事情发生了,在pubspec.lock版本从0.2.9变成了0.1.8
并且该插件在调试模式和配置文件模式下运行良好,但在发布
你试过也放 ref 吗?
喜欢这样的安排
cell_info:
git:
url: <your fork repo>
ref: master (or which or what branch)
我发现了我的问题。在 dart pub 中连接到插件的 git 不是上传到 pub 的实际插件。所以我把本地安装的库插件复制到C:\flutter.pub-cache\hosted\pub.dartlang.org
我修复了那里的错误。
到目前为止,我正在使用名为 cell_info 版本 0.2.9 的 Flutter 插件,但我发现插件中存在问题,因此从 Github 中分叉出来并修复它并使用 git URL 在 pubspec.yaml 中像这样:
cell_info:
git:
url: http://github.com/flycomm-tech/FlutterCellInfo.git
但是奇怪的事情发生了,在pubspec.lock版本从0.2.9变成了0.1.8 并且该插件在调试模式和配置文件模式下运行良好,但在发布
你试过也放 ref 吗?
喜欢这样的安排
cell_info:
git:
url: <your fork repo>
ref: master (or which or what branch)
我发现了我的问题。在 dart pub 中连接到插件的 git 不是上传到 pub 的实际插件。所以我把本地安装的库插件复制到C:\flutter.pub-cache\hosted\pub.dartlang.org 我修复了那里的错误。