You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if old_version.is_stable() && new_version.is_pre(){
276
291
returnErr(anyhow!(
277
-
"{old_version} => {new_version} didn't increase the version; when moving to a prerelease you also need to increase the release `--bump patch`?"
292
+
"{old_version} => {new_version} didn't increase the version; when bumping to a pre-release version you also need to increase a release version component, e.g., with `--bump <major|minor|patch>`"
278
293
));
279
294
}
280
295
returnErr(anyhow!(
281
-
"{old_version} => {new_version} didn't increase the version"
296
+
"{old_version} => {new_version} didn't increase the version; provide the exact version to force an update"
Copy file name to clipboardExpand all lines: crates/uv/tests/it/version.rs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -601,7 +601,7 @@ requires-python = ">=3.12"
601
601
----- stdout -----
602
602
603
603
----- stderr -----
604
-
error: `--bump post` cannot be combined with any other `--bump`
604
+
error: `--bump post` cannot be used with another `--bump` value, got: major, patch, alpha, minor, dev, minor, post, post
605
605
");
606
606
607
607
let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -919,7 +919,7 @@ requires-python = ">=3.12"
919
919
----- stdout -----
920
920
921
921
----- stderr -----
922
-
error: 2.3.4.post6 => 2.3.4 didn't increase the version
922
+
error: 2.3.4.post6 => 2.3.4 didn't increase the version; provide the exact version to force an update
923
923
");
924
924
Ok(())
925
925
}
@@ -946,7 +946,7 @@ requires-python = ">=3.12"
946
946
----- stdout -----
947
947
948
948
----- stderr -----
949
-
error: 2.3.4b5 => 2.3.4a1 didn't increase the version
949
+
error: 2.3.4b5 => 2.3.4a1 didn't increase the version; provide the exact version to force an update
950
950
");
951
951
Ok(())
952
952
}
@@ -973,7 +973,7 @@ requires-python = ">=3.12"
973
973
----- stdout -----
974
974
975
975
----- stderr -----
976
-
error: 2.3.4 => 2.3.4a1 didn't increase the version; when moving to a prerelease you also need to increase the release `--bump patch`?
976
+
error: 2.3.4 => 2.3.4a1 didn't increase the version; when bumping to a pre-release version you also need to increase a release version component, e.g., with `--bump <major|minor|patch>`
977
977
");
978
978
Ok(())
979
979
}
@@ -1001,7 +1001,7 @@ requires-python = ">=3.12"
1001
1001
----- stdout -----
1002
1002
1003
1003
----- stderr -----
1004
-
error: `--bump` can only take one of `major`, `minor`, `patch`
1004
+
error: Only one release version component can be provided to `--bump`, got: major, major
1005
1005
");
1006
1006
Ok(())
1007
1007
}
@@ -1029,7 +1029,7 @@ requires-python = ">=3.12"
1029
1029
----- stdout -----
1030
1030
1031
1031
----- stderr -----
1032
-
error: `--bump` can only take one of `alpha`, `beta`, `rc`, `dev`
1032
+
error: Only one pre-release version component can be provided to `--bump`, got: alpha, alpha
1033
1033
");
1034
1034
Ok(())
1035
1035
}
@@ -1057,7 +1057,7 @@ requires-python = ">=3.12"
1057
1057
----- stdout -----
1058
1058
1059
1059
----- stderr -----
1060
-
error: `--bump stable` isn't needed if you're already passing `--bumpmajor`
1060
+
error: `--bump stable` cannot be used with another `--bump` value, got: stable, major
1061
1061
");
1062
1062
Ok(())
1063
1063
}
@@ -1145,7 +1145,7 @@ requires-python = ">=3.12"
1145
1145
----- stdout -----
1146
1146
1147
1147
----- stderr -----
1148
-
error: `--bump` can only take one of `alpha`, `beta`, `rc`, `dev`
1148
+
error: Only one pre-release version component can be provided to `--bump`, got: alpha, dev
1149
1149
");
1150
1150
Ok(())
1151
1151
}
@@ -1203,7 +1203,7 @@ requires-python = ">=3.12"
1203
1203
----- stdout -----
1204
1204
1205
1205
----- stderr -----
1206
-
error: `--bump post` cannot be combined with any other `--bump`
1206
+
error: `--bump post` cannot be used with another `--bump` value, got: major, post
Copy file name to clipboardExpand all lines: docs/reference/cli.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -787,18 +787,18 @@ uv version [OPTIONS] [VALUE]
787
787
<p>Expects to receive either a hostname (e.g., <code>localhost</code>), a host-port pair (e.g., <code>localhost:8080</code>), or a URL (e.g., <code>https://localhost</code>).</p>
788
788
<p>WARNING: Hosts included in this list will not be verified against the system's certificate store. Only use <code>--allow-insecure-host</code> in a secure network with verified sources, as it bypasses SSL verification and could expose you to MITM attacks.</p>
789
789
<p>May also be set with the <code>UV_INSECURE_HOST</code> environment variable.</p></dd><dt id="uv-version--bump"><a href="#uv-version--bump"><code>--bump</code></a> <i>bump</i></dt><dd><p>Update the project version using the given semantics</p>
790
-
<p>This flag can be passed multiple times to allow going to a new release and entering a prerelease: <code>--bump patch --bump beta</code></p>
790
+
<p>This flag can be passed multiple times.</p>
791
791
<p>Possible values:</p>
792
792
<ul>
793
-
<li><code>major</code>: Increase the major version (1.2.3 => 2.0.0)</li>
794
-
<li><code>minor</code>: Increase the minor version (1.2.3 => 1.3.0)</li>
795
-
<li><code>patch</code>: Increase the patch version (1.2.3 => 1.2.4)</li>
796
-
<li><code>stable</code>: Make the version stable (1.2.3b4.post5.dev6 => 1.2.3)</li>
797
-
<li><code>alpha</code>: Increase the alpha version (1.2.3a4 => 1.2.3a5)</li>
798
-
<li><code>beta</code>: Increase the beta version (1.2.3b4 => 1.2.3b5)</li>
799
-
<li><code>rc</code>: Increase the rc version (1.2.3rc4 => 1.2.3rc5)</li>
800
-
<li><code>post</code>: Increase the post version (1.2.3.post5 => 1.2.3.post6)</li>
801
-
<li><code>dev</code>: Increase the dev version (1.2.3a4.dev6 => 1.2.3.dev7)</li>
793
+
<li><code>major</code>: Increase the major version (e.g., 1.2.3 => 2.0.0)</li>
794
+
<li><code>minor</code>: Increase the minor version (e.g., 1.2.3 => 1.3.0)</li>
795
+
<li><code>patch</code>: Increase the patch version (e.g., 1.2.3 => 1.2.4)</li>
796
+
<li><code>stable</code>: Move from a pre-release to stable version (e.g., 1.2.3b4.post5.dev6 => 1.2.3)</li>
797
+
<li><code>alpha</code>: Increase the alpha version (e.g., 1.2.3a4 => 1.2.3a5)</li>
798
+
<li><code>beta</code>: Increase the beta version (e.g., 1.2.3b4 => 1.2.3b5)</li>
799
+
<li><code>rc</code>: Increase the rc version (e.g., 1.2.3rc4 => 1.2.3rc5)</li>
800
+
<li><code>post</code>: Increase the post version (e.g., 1.2.3.post5 => 1.2.3.post6)</li>
801
+
<li><code>dev</code>: Increase the dev version (e.g., 1.2.3a4.dev6 => 1.2.3.dev7)</li>
802
802
</ul></dd><dt id="uv-version--cache-dir"><a href="#uv-version--cache-dir"><code>--cache-dir</code></a> <i>cache-dir</i></dt><dd><p>Path to the cache directory.</p>
803
803
<p>Defaults to <code>$XDG_CACHE_HOME/uv</code> or <code>$HOME/.cache/uv</code> on macOS and Linux, and <code>%LOCALAPPDATA%\uv\cache</code> on Windows.</p>
804
804
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
0 commit comments