File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ set -ex
12
12
HEAD=$( git rev-parse HEAD)
13
13
VERSION=$1
14
14
15
+ CARGO_TOMLS_TO_BUMP=(
16
+ ./Cargo.toml
17
+ ./pgx/Cargo.toml
18
+ ./pgx-utils/Cargo.toml
19
+ ./pgx-macros/Cargo.toml
20
+ ./pgx-tests/Cargo.toml
21
+ ./cargo-pgx/Cargo.toml
22
+ ./pgx-pg-sys/Cargo.toml
23
+ )
24
+
15
25
CARGO_TOMLS_TO_SED=(
16
26
./cargo-pgx/src/templates/cargo_toml
17
27
./nix/templates/default/Cargo.toml
@@ -22,6 +32,7 @@ CARGO_TOMLS_TO_SED=(
22
32
./cargo-pgx/Cargo.toml
23
33
./pgx-pg-sys/Cargo.toml
24
34
./pgx-examples/* /Cargo.toml
35
+ ./Cargo.toml
25
36
)
26
37
27
38
DEPENDENCIES_TO_UPDATE=(
@@ -30,10 +41,17 @@ DEPENDENCIES_TO_UPDATE=(
30
41
" pgx-macros"
31
42
" pgx-pgx-sys"
32
43
" pgx-utils"
44
+ " cargo-pgx"
33
45
)
34
46
35
47
for cargo_toml in ${CARGO_TOMLS_TO_SED[@]} ; do
36
48
for dependency in ${DEPENDENCIES_TO_UPDATE[@]} ; do
37
49
sed -i' ' -E " s/(^${dependency} .*\" )[0-9]+\.[0-9]+\.[0-9]+(\" .*$)/\1${VERSION} \2/" ${cargo_toml}
38
50
done
39
51
done
52
+
53
+ for cargo_toml in ${CARGO_TOMLS_TO_BUMP[@]} ; do
54
+ sed -i' ' -E " s/(^version = \" )[0-9]+\.[0-9]+\.[0-9]+(\" $)/\1${VERSION} \2/" ${cargo_toml}
55
+ done
56
+
57
+ cargo generate-lockfile
You can’t perform that action at this time.
0 commit comments