forked from pgcentralfoundation/pgrx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupgrade-deps.sh
More file actions
executable file
·28 lines (25 loc) · 897 Bytes
/
upgrade-deps.sh
File metadata and controls
executable file
·28 lines (25 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /usr/bin/env bash
#LICENSE Portions Copyright 2019-2021 ZomboDB, LLC.
#LICENSE
#LICENSE Portions Copyright 2021-2023 Technology Concepts & Design, Inc.
#LICENSE
#LICENSE Portions Copyright 2023-2023 PgCentral Foundation, Inc. <contact@pgcentral.org>
#LICENSE
#LICENSE All rights reserved.
#LICENSE
#LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
# requires: "cargo install cargo-edit" from https://github.com/killercup/cargo-edit
cargo update
cargo upgrade --incompatible --exclude syn
cargo generate-lockfile
# examples are their own independent crates, so we have to do them individually.
for folder in pgrx-examples/*; do
if [ -d "$folder" ]; then
cd $folder
cargo update
cargo upgrade --incompatible --exclude syn
cargo generate-lockfile
cargo check || exit $?
cd -
fi
done