示例pubspec.yaml
dependencIEs: Flutter: sdk: Flutter cloud_firestore: ^0.8.1+1 sqflite: 0.12.2+1 zoomable_image: ^1.2.1+1
我检查了here但没找到它.
什么意思?它也可以是2吗?
解决方法 意味着它是一个常规版本,而 – 表示预发布版本.
(x.y.z之后没有内部版本号也表示发布版本如此)
该版本的以下部分是一些没有固定格式的内部版本号.
也可以看看
> https://www.dartlang.org/tools/pub/versioning
> https://semver.org/spec/v2.0.0-rc.1.html
从https://semver.org/spec/v2.0.0-rc.1.html开始
A pre-release version MAY be denoted by appending a dash and a serIEs of dot separated IDentifIErs immediately following the patch version. IDentifIErs MUST be comprised of only ASCII Alphanumerics and dash [0-9A-Za-z-]. Pre-release versions satisfy but have a lower precedence than the associated normal version. Examples: 1.0.0-Alpha,1.0.0-Alpha.1,1.0.0-0.3.7,1.0.0-x.7.z.92.
A build version MAY be denoted by appending a plus sign and a serIEs of dot separated IDentifIErs immediately following the patch version or pre-release version. IDentifIErs MUST be comprised of only ASCII Alphanumerics and dash [0-9A-Za-z-]. Build versions satisfy and have a higher precedence than the associated normal version. Examples: 1.0.0+build.1,1.3.7+build.11.e0f985a.
提示:除非 – 明确是pubspec.yaml中版本约束的一部分,否则Flutter包get会忽略预发布版本(带 – )
foo_package: ^1.2.3-beta总结
以上是内存溢出为你收集整理的在dart的依赖版本控制中,加一(1)意味着什么全部内容,希望文章能够帮你解决在dart的依赖版本控制中,加一(1)意味着什么所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)