简体   繁体   English

flutter package 上的补丁命令中的 pub_version_plus 出错

[英]Error with pub_version_plus in patch commands on flutter package

I am using the pub_version_plus package, I have installed it as flutter pub add --dev pub_version_plus .我正在使用pub_version_plus package,我已将其安装为flutter pub add --dev pub_version_plus Package version 1.0.2 has been installed. Package 1.0.2版本已安装。

When I try to increase the patch version, I expect the build versions to be reset, however it doesn't happen, I don't know if I'm missing something or I have to reset it manually.当我尝试增加补丁版本时,我希望构建版本会被重置,但它并没有发生,我不知道我是否遗漏了什么或者我必须手动重置它。

I show an example:我举个例子:

$ flutter pub run pub_version_plus:main patch
[station_screen] "1.1.5" => "1.1.6"
$ flutter pub run pub_version_plus:main patch
[station_screen] "1.1.6" => "1.1.7"
$ flutter pub run pub_version_plus:main build
[station_screen] "1.1.7" => "1.1.7+1"
$ flutter pub run pub_version_plus:main build
[station_screen] "1.1.7+1" => "1.1.7+2"
$ flutter pub run pub_version_plus:main patch
[station_screen] "1.1.7+2" => "1.1.8+2"

I want version 1.1.7+2 to go to 1.1.8我想要版本1.1.7+2到 go 到1.1.8

patch #修补 #

Increments the patch version number - 0.0.X增加补丁版本号 - 0.0.X

test_package upgraded from 1.0.0 to 1.0.1

#! with build number
test_package upgraded from 1.0.0+4 to 1.0.1+0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM