栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

突破Flutter私有化仓库100M限制-Hosted packages must be smaller than 100 MB

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

突破Flutter私有化仓库100M限制-Hosted packages must be smaller than 100 MB

突破Flutter私有化仓库100M限制-Hosted packages must be smaller than 100 MB
  • 关于如何创建私有化Flutter仓库、发布Flutter私有化仓库请看这里。
  • 私有化仓库大小超过100M报错
  • 查找问题所在

关于如何创建私有化Flutter仓库、发布Flutter私有化仓库请看这里。

Flutter私有化仓库创建、发布.

私有化仓库大小超过100M报错

如果个人创建的Flutter私有库大小超过100M,在使用pub publish发布私有化仓库过程中就会出现Your package is 602.9 MB. Hosted packages must be smaller than 100 MB

Package validation found the following error:
* Your package is 602.9 MB. Hosted packages must be smaller than 100 MB.
Package validation found the following potential issue:
* Your pubspec.yaml includes an "author" section which is no longer used and may be removed.
errors:[Your package is 602.9 MB. Hosted packages must be smaller than 100 MB.]
Sorry, your package is missing a requirement and can't be published yet.
For more information, see: https://dart.dev/tools/pub/cmd/pub-lish.
查找问题所在

根据报错在pub-SDK-2.10.0-64.0.dev中lib/src/validator/目录下找到size.dart文件,可以看到:

/// The maximum size of the package to upload (100 MB).
const _MAX_SIZE = 100 * 1024 * 1024;

查找到这里,就等于看到了症结所在。

只需要修改_MAX_SIZE的大小就可以突破私有仓库100M的大小限制。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/672424.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号