We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259cd1f commit c7f20f1Copy full SHA for c7f20f1
tools/release-prepare.sh
@@ -6,6 +6,14 @@
6
set -eu -o pipefail
7
set -x
8
9
+function check_snapshot_version {
10
+ local version=$1
11
+ local snap_version=$(echo $version |cut -f-2 -d. |tr . _)
12
+ if ! grep FC_V${snap_version}_SNAP_VERSION src/vmm/src/version_map.rs; then
13
+ die "I couldn't find FC_V${snap_version}_SNAP_VERSION in src/vmm/src/version_map.rs"
14
+ fi
15
+}
16
+
17
FC_TOOLS_DIR=$(dirname $(realpath $0))
18
source "$FC_TOOLS_DIR/functions"
19
FC_ROOT_DIR=$FC_TOOLS_DIR/..
@@ -29,6 +37,7 @@ version=$1
29
37
validate_version "$version"
30
38
31
39
check_local_branch_is_release_branch
40
+check_snapshot_version "$version"
32
41
33
42
# Create GitHub PR link
34
43
ORIGIN_URL=$(git config --get remote.origin.url)
0 commit comments